JWT authenticator for Integreat
npm install integreat-authenticator-jwtSigns a JWT token.


Requires node v18 and Integreat v1.0.
Install from npm:
```
npm install integreat-authenticator-jwt
The authenticator supports the following options:
- key: The key to sign the JWT with. Requiredalgorithm
- : The algorithm to sign with. Default HS256subPath
- : A dot notation path into the request object, to get the JWT subaudience
claim
- : The JWT audience claim. RequiredexpiresIn
- : The expiration time for the JWT, aspayload
a ms string. When not set, the token
will never expire
- : An object whose properties will be set on the JWT payloadrequireEmailVerified
- : When set to false, the email prop will be usedemail_verified
without a prop set to true in a JWT payload. Default istrue
, which means that email will not be used without a email_verifiedtrustedKeys
prop.
- : A JavaScript Map of trusted keys used for validating JWTs onvalidate()
incoming actions. This is only relevant for the method, and it is
also the only option relevant for this method.
The tests can be run with npm test`.
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.