lbx-jwt
Version:
Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.
16 lines (15 loc) • 336 B
text/typescript
import { Model, model, property } from '@loopback/repository';
/**
* Describes the type of grant object taken in by method "refresh".
*/
@model()
export class RefreshGrant extends Model {
/**
* The refresh token value.
*/
@property({
type: 'string',
required: true
})
refreshToken: string;
}