Jwt Module for Nest framework
Description
This's a nestjs-fastjwt module for Nest.
This document assumes that you have a working nodejs setup in place.
Installation
$ npm i --save nestjs-fastjwt
Usage
Usage is pretty straightforward. Import FastJwtModule
into the root AppModule
and configure it using the forRoot()
method. You can pass in a configuration object of type FastJwtModuleOptions
to the forRoot()
method.
This is supposed to be a drop in replacement for nestjs built-in jwt module. So you can use it the same way you use nestjs built-in jwt module.
Limitations:
- This module doesn't support time in string format yet. You have to use time in milli seconds for now.