UNPKG

matrix-react-sdk

Version:
16 lines (15 loc) 592 B
import { ReactNode } from "react"; /** * Errors thrown by EW during OIDC native flow authentication. * Intended to be logged, not read by users. */ export declare enum OidcClientError { InvalidQueryParameters = "Invalid query parameters for OIDC native login. `code` and `state` are required." } /** * Get a friendly translated error message for user consumption * based on error encountered during authentication * @param error * @returns a friendly translated error message for user consumption */ export declare const getOidcErrorMessage: (error: Error) => string | ReactNode;