Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/CodebuffAI/codebuff
/ credentials.test.ts
File
credentials.test.ts
sdk/src/__tests__/credentials.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, expect, test, mock, afterEach } from
'bun:test'
2
import
fs from
'fs'
3
import
path from
'node:path'
4
import
os from
'os'
Callers
nothing calls this directly
Calls
12
getConfigDir
Function · 0.90
getCredentialsPath
Function · 0.90
userFromJson
Function · 0.90
getUserCredentials
Function · 0.90
getChatGptOAuthCredentials
Function · 0.90
saveChatGptOAuthCredentials
Function · 0.90
clearChatGptOAuthCredentials
Function · 0.90
isChatGptOAuthValid
Function · 0.90
refreshChatGptOAuthToken
Function · 0.90
getValidChatGptOAuthCredentials
Function · 0.90
afterEach
Function · 0.85
parse
Method · 0.80
Tested by
no test coverage detected