0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00
verdaccio/test/unit/partials/config/yaml/token.spec.yaml
Juan Picado 5e9637da90
fix: add missing token auth middleware (#3944)
* fix: add missing token auth middleware

* improve tests

* format
2023-07-21 00:32:14 +02:00

22 lines
504 B
YAML

storage: ./storage_default_storage
uplinks:
npmjs:
url: http://localhost:4873/
security:
api:
jwt:
sign:
expiresIn: 5m
# to avoid invalid verification token, more info on JWT page
notBefore: 0
packages:
'@token/*':
access: $authenticated
publish: $authenticated
'only-you-can-publish':
access: $authenticated
publish: $authenticated
log: { type: stdout, format: pretty, level: trace }
experiments:
## enable token for testing
token: true