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