UNPKG

@ioloco/oauth

Version:

OAuth 2.0 utility library that provides helper functions for integrating third-party login providers. Designed to simplify the token exchange and user-fetch flows, while leaving API route implementation to the developer.

9 lines (8 loc) 270 B
export declare function fetchOAuthToken({ tokenUrl, clientId, clientSecret, redirectUri, code, codeVerifier }: { tokenUrl: string; clientId: string; clientSecret: string; redirectUri: string; code: string; codeVerifier: string; }): Promise<any>;