@bc-koenro/oauth2-client
Version:
OAuth2 client for browsers and Node.js. Tiny footprint, PKCE support
18 lines (17 loc) • 430 B
TypeScript
/**
* An error class for any error the server emits.
*
* The 'code' property will have the oauth2 error type,
* such as:
* - invalid_request
* - invalid_client
* - invalid_grant
* - unauthorized_client
* - unsupported_grant_type
* - invalid_scope
*/
export declare class OAuth2Error extends Error {
oauth2Code: string;
httpCode: number;
constructor(message: string, oauth2Code: string, httpCode: number);
}