/*! * @license * Copyright Squiz Australia Pty Ltd. All Rights Reserved. */ /** * All of the possible `AuthErrorName*`'s. */ export declare type AuthErrorName = AuthErrorNameAccessDenied | AuthErrorNameMalformedToken | AuthErrorNameTooManyAttempts | AuthErrorNameUnauthorized | AuthErrorNameUnknown; /** * The credentials used to login did not work. * @export */ export declare type AuthErrorNameAccessDenied = typeof AUTH_ERROR_NAME_ACCESS_DENIED; /** * The token is malformed. * @export */ export declare type AuthErrorNameMalformedToken = typeof AUTH_ERROR_NAME_MALFORMED_TOKEN; /** * Too many consecutive login attempts have been made. * @export */ export declare type AuthErrorNameTooManyAttempts = typeof AUTH_ERROR_NAME_TOO_MANY_ATTEMPTS; /** * Unauthorized access. * @export */ export declare type AuthErrorNameUnauthorized = typeof AUTH_ERROR_NAME_UNAUTHORIZED; /** * Something unknown when wrong. * @export */ export declare type AuthErrorNameUnknown = typeof AUTH_ERROR_NAME_UNKNOWN; /** * The default description to use in the case that no other description is available. * @export */ export declare const AUTH_ERROR_DESCRIPTION_UNKNOWN = "Something unknown went wrong."; /** * The description for when the login response does not contain an `expiresIn`. * @export */ export declare const AUTH_ERROR_DESCRIPTION_MISSING_EXPIRES_IN = "Unable to login. Did not receive \"expiresIn\"."; /** * The description for when the login response does not contain an `access_token`. * @export */ export declare const AUTH_ERROR_DESCRIPTION_MISSING_TOKEN_ACCESS = "Unable to login. Did not receive \"access_token\"."; /** * The description for when the login response does not contain an `id_token`. * @export */ export declare const AUTH_ERROR_DESCRIPTION_MISSING_TOKEN_ID = "Unable to login. Did not receive \"id_token\"."; /** * The description for when the login response does not contain an `refresh_token`. * @export */ export declare const AUTH_ERROR_DESCRIPTION_MISSING_TOKEN_REFRESH = "Unable to login. Did not receive \"refresh_token\"."; /** * The description for when the login response does not contain an `scope`. * @export */ export declare const AUTH_ERROR_DESCRIPTION_MISSING_SCOPE = "Unable to login. Did not receive \"scope\"."; /** * The credentials used to login did not work. * @export */ export declare const AUTH_ERROR_NAME_ACCESS_DENIED = "access_denied"; /** * The token is malformed. * @export */ export declare const AUTH_ERROR_NAME_MALFORMED_TOKEN = "malformed_token"; /** * Too many consecutive login attempts have been made. * @export */ export declare const AUTH_ERROR_NAME_TOO_MANY_ATTEMPTS = "too_many_attempts"; /** * The credentials used to login did not work. * @export */ export declare const AUTH_ERROR_NAME_UNAUTHORIZED = "unauthorized"; /** * Something unknown when wrong. * @export */ export declare const AUTH_ERROR_NAME_UNKNOWN = "unknown";