Interface UseAuthParameters

interface UseAuthParameters {
    onAuthentication?: ((promise) => void);
    onAuthenticationSuccess?: ((identity) => void);
    onAuthenticationFailure?: ((error) => void);
    onLoginSuccess?: ((principal) => void);
    onLoginError?: ((error) => void);
    onLogin?: ((promise) => void);
    onLoggedOut?: (() => void);
}

Properties

onAuthentication?: ((promise) => void)

Type declaration

onAuthenticationSuccess?: ((identity) => void)

Type declaration

onAuthenticationFailure?: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: undefined | string

      Returns void

onLoginSuccess?: ((principal) => void)

Type declaration

onLoginError?: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: undefined | string

      Returns void

onLogin?: ((promise) => void)

Type declaration

onLoggedOut?: (() => void)

Type declaration

    • (): void
    • Returns void