| 27 | } |
| 28 | |
| 29 | export 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 | |
| 43 | export interface CreateOAuthOptions<T extends string> { |
| 44 | basePath: string; |
nothing calls this directly
no outgoing calls
no test coverage detected