@blockchain-lab-um/oidc-types
Version:
Types for OIDC.
13 lines (11 loc) • 990 B
TypeScript
interface ErrorObject {
error: string;
error_description: string;
}
declare const AUTHORIZATION_ERROR_CODES: readonly ["invalid_request", "unauthorized_client", "access_denied", "unsupported_response_type", "invalid_scope", "server_error", "temporarily_unavailable"];
declare const AUTHORIZATION_ERRORS: Record<(typeof AUTHORIZATION_ERROR_CODES)[number], string>;
declare const TOKEN_ERROR_CODES: readonly ["invalid_request", "invalid_client", "invalid_grant", "unauthorized_client", "unsupported_grant_type", "invalid_scope"];
declare const TOKEN_ERRORS: Record<(typeof TOKEN_ERROR_CODES)[number], string>;
declare const CREDENTIAL_ERROR_CODES: readonly ["invalid_request", "invalid_token", "insufficient_scope", "unsupported_credential_type", "unsupported_credential_format", "invalid_or_missing_proof"];
declare const CREDENTIAL_ERRORS: Record<(typeof CREDENTIAL_ERROR_CODES)[number], string>;
export { AUTHORIZATION_ERRORS, CREDENTIAL_ERRORS, type ErrorObject, TOKEN_ERRORS };