Skip to content

Commit

Permalink
added biometric login
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-fabian committed May 24, 2024
1 parent e82dcc8 commit 6d28a1f
Show file tree
Hide file tree
Showing 73 changed files with 10,026 additions and 4,427 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ export class MailService extends BaseMailService<Roles> {
}
```

## Create your own biometric credentials service
```ts
@bind({ scope: BindingScope.TRANSIENT })
export class BiometricCredentialsService extends BaseBiometricCredentialsService {
protected readonly RP_NAME: string = 'Test';
protected readonly RP_DOMAIN: string = 'localhost';
}
```

## Enjoy!
That's it, now you can use it inside your code:
```typescript
Expand Down
8 changes: 3 additions & 5 deletions cspell.words.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
uuidv4
datasource
datasources
webauthn
whitesmoke
Booter
totp
simplewebauthn
RPID
8,427 changes: 5,404 additions & 3,023 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lbx-jwt",
"description": "Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.",
"version": "1.3.0",
"version": "1.4.0",
"keywords": [
"lb4",
"LoopBack",
Expand Down Expand Up @@ -41,20 +41,25 @@
"copy:contributing": "cp ./CONTRIBUTING.md dist/CONTRIBUTING.md",
"copy:mailTemplates": "cp -r ./src/services/mail/templates dist/services/mail/templates"
},
"engines": {
"node": ">=20"
},
"peerDependencies": {
"@loopback/authentication": "10",
"@loopback/authorization": "0.14",
"@loopback/core": "5",
"@loopback/rest": "13",
"@loopback/security": "0.10",
"handlebars": "4",
"nodemailer": "6"
},
"dependencies": {
"nodemailer": "6",
"@hexagon/base64": "^1.1.28",
"@simplewebauthn/server": "^10.0.0",
"bcryptjs": "^2.4.3",
"hi-base32": "^0.5.1",
"jsonwebtoken": "^9.0.1",
"otpauth": "^9.1.4",
"otpauth": "^9.1.4"
},
"dependencies": {
"tslib": "^2.6.1"
},
"devDependencies": {
Expand All @@ -73,8 +78,9 @@
"@types/node": "^20.5.0",
"@types/nodemailer": "^6.4.9",
"eslint": "^8.47.0",
"eslint-config-service-soft": "^1.3.3",
"eslint-config-service-soft": "^1.4.2",
"handlebars": "^4.7.8",
"loopback-connector-mysql": "^7.0.9",
"nodemailer": "^6.9.4",
"typescript": "~5.1.6"
}
Expand Down
2 changes: 1 addition & 1 deletion showcase/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-slim
FROM node:20-slim

# Set to a non-root built-in user `node`
USER node
Expand Down

0 comments on commit 6d28a1f

Please sign in to comment.