MCPcopy Create free account
hub / github.com/Noumena-Network/code / writeProfileOauthTokens

Function writeProfileOauthTokens

src/services/api/bootstrap.test.ts:111–120  ·  view source on GitHub ↗
(expiresAt: number)

Source from the content-addressed store, hash-verified

109}
110
111function writeProfileOauthTokens(expiresAt: number): void {
112 saveOAuthTokensIfNeeded({
113 accessToken: 'oauth-token',
114 refreshToken: 'refresh-token',
115 expiresAt,
116 scopes: ['user:profile', 'user:inference'],
117 subscriptionType: 'max',
118 rateLimitTier: 'tier-1',
119 })
120}
121
122function approveApiKey(apiKey: string): void {
123 process.env.ANTHROPIC_API_KEY = apiKey

Callers 1

bootstrap.test.tsFile · 0.85

Calls 1

saveOAuthTokensIfNeededFunction · 0.85

Tested by

no test coverage detected