@poppinss/oauth-client
Version:
A framework agnostic package to implement "Login with" flow using OAuth compliant authorization servers.
36 lines (35 loc) • 1.08 kB
TypeScript
import { Exception } from '@poppinss/exception';
/**
* Raised when unable to get access token for oauth2 or oauth token and secret
* for oauth1
*/
export declare const E_OAUTH_MISSING_TOKEN: {
new (message?: string, options?: ErrorOptions & {
code?: string;
status?: number;
}): {
name: string;
help?: string;
code?: string;
status: number;
toString(): string;
get [Symbol.toStringTag](): string;
message: string;
stack?: string;
cause?: unknown;
};
status: number;
code: string;
oauth2Message: string;
oauth1Message: string;
help?: string;
message?: string;
isError(error: unknown): error is Error;
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
stackTraceLimit: number;
};
/**
* Raised when unable to verify the CSRF state post redirect
*/
export declare const E_OAUTH_STATE_MISMATCH: new (args?: any, options?: ErrorOptions) => Exception;