feat(provider): add OpenAI Codex browser OAuth flow (#398)
Co-authored-by: zuolingxuan <zuolingxuan@bytedance.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
880995af19
commit
31e80f256b
@@ -1758,7 +1758,7 @@ function registerDeviceOAuthHandlers(mainWindow: BrowserWindow): void {
|
||||
) => {
|
||||
try {
|
||||
logger.info(`provider:requestOAuth for ${provider}`);
|
||||
if (provider === 'google') {
|
||||
if (provider === 'google' || provider === 'openai') {
|
||||
await browserOAuthManager.startFlow(provider, options);
|
||||
} else {
|
||||
await deviceOAuthManager.startFlow(provider, region, options);
|
||||
|
||||
Reference in New Issue
Block a user