UNPKG

lbx-jwt

Version:

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

17 lines (16 loc) 784 B
import { AuthenticationResponseJSON, AuthenticatorAttachment } from '@simplewebauthn/types'; import { AuthenticationExtensionsOutputs } from './authentication-extensions-outputs.model'; import { AuthenticatorAssertionResponse } from './authenticator-assertion-response.model'; import { Base64UrlString } from '../../../encapsulation/webauthn.utilities'; /** * Response from the frontend when authentication was successful. */ export declare class AuthenticationResponse implements AuthenticationResponseJSON { id: Base64UrlString; rawId: Base64UrlString; response: AuthenticatorAssertionResponse; authenticatorAttachment?: AuthenticatorAttachment; clientExtensionResults: AuthenticationExtensionsOutputs; type: PublicKeyCredentialType; userId: string; }