diff --git a/codex-vscode/src/services/oauth.service.ts b/codex-vscode/src/services/oauth.service.ts index a1e1e68a..18b7f83a 100644 --- a/codex-vscode/src/services/oauth.service.ts +++ b/codex-vscode/src/services/oauth.service.ts @@ -67,14 +67,16 @@ export class OAuthService implements IOAuthService { }; private parseQuery(uri: vscode.Uri) { + // This method parses the query string of the URI and returns an object + // where each query parameter becomes a key-value pair. return uri.query.split("&").reduce((prev: any, current) => { - // important to split const queryString = current.split("="); prev[queryString[0]] = queryString[1]; return prev; }, {}); } + private clearCodeExchangePromise = (): void => { OAuthService.codeExchangePromise = undefined; };