lbx-jwt
Version:
Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.
29 lines (27 loc) • 771 B
text/typescript
import { model, property } from '@loopback/repository';
import { getJsonSchema } from '@loopback/rest';
import { BiometricCredentials } from '../../../models';
/**
* The response for finalizing a biometric registration.
*/
@model()
export class ConfirmBiometricRegistrationResponse {
/**
* All biometric credentials of the user, including the new one if registration was successful.
*/
@property({
type: 'array',
itemType: 'object',
required: false,
jsonSchema: getJsonSchema(BiometricCredentials)
})
biometricCredentials: BiometricCredentials[];
/**
* Whether or not registration was successful.
*/
@property({
type: 'boolean',
required: true
})
verified: boolean;
}