Skip to content

Commit

Permalink
Merge pull request #8 from Service-Soft/dev
Browse files Browse the repository at this point in the history
Release 1.4.0
  • Loading branch information
tim-fabian committed May 25, 2024
2 parents c5d3071 + 27dbed9 commit 13997e1
Show file tree
Hide file tree
Showing 75 changed files with 10,055 additions and 4,430 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# The branch, tag or SHA to checkout. When checking out the repository that
# triggered a workflow, this defaults to the reference or SHA for that event.
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# sets up node 20
- uses: actions/setup-node@v4
with:
node-version: '20'
# runs npm i inside the root directory
- name: npm i root
run: |
Expand Down
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
9 changes: 4 additions & 5 deletions cspell.words.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
uuidv4
datasource
datasources
webauthn
whitesmoke
Booter
totp
simplewebauthn
RPID
cicd
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
Loading

0 comments on commit 13997e1

Please sign in to comment.