nestjs-redtail-authentication

A NestJS package for Redtail authentication.


Keywords
nestjs
License
MIT
Install
npm install nestjs-redtail-authentication@1.0.5

Documentation

Installation

npm install nestjs-redtail-authentication

Import into your app.module.ts and register

imports: [
  ...
  RedtailAuthenticationModule.register({
    REDTAIL_BASE_URL: process.env.REDTAIL_BASE_URL || 'https://redtailapiurl.com/api/v1',
    REDTAIL_API_KEY: process.env.REDTAIL_API_KEY || 'your_api_key',
    JWT_SECRET: process.env.JWT_SECRET || 'my_secret',
    JWT_ACCESS_TOKEN_EXPIRES: process.env.JWT_ACCESS_TOKEN_EXPIRES || '15m',
    JWT_REFRESH_TOKEN_EXPIRES: process.env.JWT_REFRESH_TOKEN_EXPIRES || '30m'
  }),
  ...
]

Change Log

See Changelog for more information.

Author

Jacob Neterer - my website

License

Licensed under the MIT License - see the LICENSE file for details.