MCPcopy
hub / github.com/lukevella/rallly / OAuthClient

Interface OAuthClient

apps/web/src/lib/oauth/types.ts:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29export interface OAuthClient {
30 provider: string;
31 onConnect?: (params: {
32 providerAccountId: string;
33 userInfo: UserInfo;
34 provider: string;
35 tokens: OAuthTokens;
36 }) => Promise<void>;
37 getAuthorizationUrl: (state: string, codeVerifier: string) => URL;
38 exchangeCode: (code: string, codeVerifier: string) => Promise<OAuthTokens>;
39 getUserInfo: (tokens: OAuthTokens) => Promise<UserInfo>;
40 refreshAccessToken: (refreshToken: string) => Promise<OAuthTokens>;
41}
42
43export interface CreateOAuthOptions<T extends string> {
44 basePath: string;

Callers

nothing calls this directly

Implementers 1

GoogleOAuthClientapps/web/src/lib/oauth/providers/googl

Calls

no outgoing calls

Tested by

no test coverage detected