@indiekit/endpoint-token
Token endpoint for Indiekit.
Installation
npm i @indiekit/endpoint-token
Usage
Add @indiekit/endpoint-token
to your list of plug-ins, specifying options as required:
{
"plugins": ["@indiekit/endpoint-token"],
"@indiekit/endpoint-token": {
"mountPath": "/jeton" // fr-FR
}
}
You will also need to set a TOKEN_SECRET
environment variable to sign and verify tokens created by this endpoint.
Options
Option | Type | Description |
---|---|---|
mountPath |
string |
Path to token endpoint. Optional, defaults to /token . |