MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / connectChatGptOAuth

Function connectChatGptOAuth

cli/src/utils/chatgpt-oauth.ts:212–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211
212export function connectChatGptOAuth(): {
213 authUrl: string
214 credentials: Promise<ChatGptOAuthCredentials>
215} {
216 stopChatGptOAuthServer()
217
218 const { codeVerifier, authUrl } = startChatGptOAuthFlow()
219 const credentials = startCallbackServer(codeVerifier)
220
221 void safeOpen(authUrl)
222
223 return { authUrl, credentials }
224}
225
226function parseAuthCodeInput(input: string): { code: string; state?: string } {
227 const trimmed = input.trim()

Callers 2

ChatGptConnectBannerFunction · 0.90
handleConnectFunction · 0.90

Calls 4

safeOpenFunction · 0.90
stopChatGptOAuthServerFunction · 0.85
startChatGptOAuthFlowFunction · 0.85
startCallbackServerFunction · 0.85

Tested by

no test coverage detected