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) 316 B
import { model, property } from '@loopback/repository'; /** * The response for turning on 2fa. Contains the qr code url. */ @model() export class TurnOn2FAResponse { /** * The qr-code url that was generated. */ @property({ type: 'string', required: true }) url: string; }