1.0.0-alpha.12 • Published 2 years ago

@indiekit/endpoint-token v1.0.0-alpha.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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

OptionTypeDescription
mountPathstringPath to token endpoint. Optional, defaults to /token.