UNPKG

@poppinss/oauth-client

Version:

A framework agnostic package to implement "Login with" flow using OAuth compliant authorization servers.

35 lines (34 loc) 1.06 kB
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; readonly [Symbol.toStringTag]: string; message: string; stack?: string; cause?: unknown; }; status: number; code: string; oauth2Message: string; oauth1Message: string; help?: string; message?: string; captureStackTrace(targetObject: object, constructorOpt?: Function): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; 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;