lbx-jwt
Version:
Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.
33 lines (27 loc) • 782 B
text/typescript
/* eslint-disable jsdoc/require-jsdoc */
import { model, property } from '@loopback/repository';
import { AuthenticatorAssertionResponseJSON } from '@simplewebauthn/types';
import { Base64UrlString } from '../../../encapsulation/webauthn.utilities';
()
export class AuthenticatorAssertionResponse implements AuthenticatorAssertionResponseJSON {
({
type: 'string',
required: true
})
clientDataJSON: Base64UrlString;
({
type: 'string',
required: true
})
authenticatorData: Base64UrlString;
({
type: 'string',
required: true
})
signature: Base64UrlString;
({
type: 'string',
required: false
})
userHandle?: Base64UrlString;
}