( authType: AuthType, config: Config, )
| 191 | } |
| 192 | |
| 193 | export async function getOauthClient( |
| 194 | authType: AuthType, |
| 195 | config: Config, |
| 196 | ): Promise<OAuth2Client> { |
| 197 | if (!oauthClientPromises.has(authType)) { |
| 198 | oauthClientPromises.set(authType, initOauthClient(authType, config)); |
| 199 | } |
| 200 | return oauthClientPromises.get(authType)!; |
| 201 | } |
| 202 | |
| 203 | async function authWithUserCode(client: OAuth2Client): Promise<boolean> { |
| 204 | const redirectUri = 'https://codeassist.google.com/authcode'; |
no test coverage detected