JWT authenticator for Integreat
Signs a JWT token.
Requires node v14 and Integreat v0.8.
Installing and using
Install from npm:
npm install integreat-authenticator-jwt
The authenticator supports the following options:
key: The key to sign the JWT with. Required
algorithm: The algorithm to sign with. Default
subPath: A dot notation path into the request object, to get the JWT sub claim
audience: The JWT audience claim. Required
expiresIn: The expiration time for the JWT, as a ms string. When not set, the token will never expire
payload: An object whose properties will be set on the JWT payload
Running the tests
The tests can be run with
Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the ISC License - see the LICENSE file for details.