UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

43 lines (37 loc) 1.28 kB
/** * Copyright © 2025 Nevis Security AG. All rights reserved. */ import { AuthenticationError } from './AuthenticationError'; import { SessionProvider } from '../../authorization/SessionProvider'; /** * The server requires application attestation and there was a problem either obtaining the application * attestation information from the Google Cloud APIs, or the server did not accept the contents sent * by the SDK. */ export class AuthenticationAppAttestationError extends AuthenticationError { /** * Provides details about the error that occurred. */ description: string; /** * The exception (if any) that caused this error. */ cause?: string; /** * The {@link SessionProvider} that can be used to continue with the operation. */ sessionProvider?: SessionProvider; /** * The default constructor. * * @param description provides details about the error that occurred. * @param cause the exception (if any) that caused this error. * @param sessionProvider the {@link SessionProvider} that can be used to continue with the operation. */ constructor(description: string, cause?: string, sessionProvider?: SessionProvider) { super(); this.description = description; this.cause = cause; this.sessionProvider = sessionProvider; } }