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.

4 lines (3 loc) 252 B
import { OAuthClient } from './AuthClient'; export declare function registerOAuthProvider<T>(provider: string, config: ConstructorParameters<typeof OAuthClient<T>>[0]): void; export declare function getOAuthClient<T>(provider: string): OAuthClient<T>;