UNPKG

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) 383 B
import { model, property } from '@loopback/repository'; /** * The response that gets sent when a user tries to login that requires resetting his password. */ @model() export class RequirePasswordChangeResponseModel { /** * Whether or not 2fa is required. */ @property({ type: 'boolean', required: true }) requirePasswordChange: boolean; }