piral-oidc
Version:
Plugin to integrate authentication using OpenID connect in Piral.
14 lines (13 loc) • 543 B
TypeScript
import { OidcErrorType, PiralOidcError } from './types';
/**
* A custom error class for oidc errors. It is important to use this class
* instead of generic Errors, as some application paths inspect `OidcError['type']`.
*
* An optional innerError can be supplied in order to not lose visibility on messages provided
* by oidc-client.
*/
export declare class OidcError extends Error implements PiralOidcError {
readonly type: any;
readonly innerError: any;
constructor(errorType: OidcErrorType, innerError?: Error | string);
}