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

Function getChatGptOAuthStatus

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

Source from the content-addressed store, hash-verified

301}
302
303export function getChatGptOAuthStatus(): {
304 connected: boolean
305 expiresAt?: number
306 connectedAt?: number
307} {
308 const credentials = getChatGptOAuthCredentials()
309 if (!credentials) {
310 return { connected: false }
311 }
312
313 if (!isChatGptOAuthValid()) {
314 return { connected: false }
315 }
316
317 return {
318 connected: true,
319 expiresAt: credentials.expiresAt,
320 connectedAt: credentials.connectedAt,
321 }
322}

Callers 4

ChatGptConnectBannerFunction · 0.90
HelpBannerFunction · 0.90

Calls 2

isChatGptOAuthValidFunction · 0.90

Tested by

no test coverage detected