Never Print Magazines

    @indiekit/endpoint-auth

    1.0.0-beta.1 • Public • Published

    @indiekit/endpoint-auth

    IndieAuth authentication and authorization endpoint for Indiekit. Grants and verifies access tokens and authenticates users.

    Installation

    npm i @indiekit/endpoint-auth

    Usage

    Add @indiekit/endpoint-auth to your list of plug-ins, specifying options as required:

    {
      "plugins": ["@indiekit/endpoint-auth"],
      "@indiekit/endpoint-auth": {
        "mountPath": "/authorize"
      }
    }

    You will also need to set the following environment variables:

    • SECRET - used to sign and verify tokens and salt password
    • PASSWORD_SECRET - hashed and salted password used when signing in. You can generate this value by visiting /auth/new-password

    Options

    Option Type Description
    mountPath string Path to authorization endpoint. Optional, defaults to /auth.

    Install

    npm i @indiekit/endpoint-auth

    DownloadsWeekly Downloads

    9

    Version

    1.0.0-beta.1

    License

    MIT

    Unpacked Size

    51.3 kB

    Total Files

    34

    Last publish

    Collaborators

    • paulrobertlloyd