UNPKG

lbx-jwt

Version:

Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.

25 lines (22 loc) 553 B
//TODO: Remove /* eslint-disable jsdoc/require-jsdoc */ import { model, property } from '@loopback/repository'; import { PublicKeyCredentialUserEntityJSON } from '@simplewebauthn/types'; @model() export class PublicKeyCredentialUser implements PublicKeyCredentialUserEntityJSON { @property({ type: 'string', required: true }) id: string; @property({ type: 'string', required: true }) name: string; @property({ type: 'string', required: true }) displayName: string; }