mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
docs: fix security jwt config example (#4976)
This commit is contained in:
parent
beffd788a5
commit
5b7a3e6843
2 changed files with 8 additions and 12 deletions
|
@ -120,17 +120,15 @@ By using the JWT signature is also possible to customize the [signature](https:/
|
|||
```yaml
|
||||
security:
|
||||
api:
|
||||
legacy: true
|
||||
migrateToSecureLegacySignature: true # will generate a new secret token if the length is 64 characters
|
||||
jwt:
|
||||
sign:
|
||||
expiresIn: 29d
|
||||
verify:
|
||||
someProp: [value]
|
||||
web:
|
||||
sign:
|
||||
expiresIn: 1h # 1 hour by default
|
||||
verify:
|
||||
web:
|
||||
sign:
|
||||
expiresIn: 1h # 1 hour by default
|
||||
verify:
|
||||
someProp: [value]
|
||||
```
|
||||
|
||||
|
|
|
@ -161,17 +161,15 @@ By using the JWT signature is also possible to customize the [signature](https:/
|
|||
```yaml
|
||||
security:
|
||||
api:
|
||||
legacy: true
|
||||
migrateToSecureLegacySignature: true # will generate a new secret token if the length is 64 characters
|
||||
jwt:
|
||||
sign:
|
||||
expiresIn: 29d
|
||||
verify:
|
||||
someProp: [value]
|
||||
web:
|
||||
sign:
|
||||
expiresIn: 1h # 1 hour by default
|
||||
verify:
|
||||
web:
|
||||
sign:
|
||||
expiresIn: 1h # 1 hour by default
|
||||
verify:
|
||||
someProp: [value]
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue