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

Function isCurrentEnterpriseOauthSession

src/services/api/withRetry.ts:145–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145function isCurrentEnterpriseOauthSession(): boolean {
146 const session = getCurrentRetrySession()
147 return (
148 isOauthBackedFirstPartySession(session) &&
149 session.subscription.subscriptionType === 'enterprise'
150 )
151}
152
153export interface RetryContext {
154 maxTokensOverride?: number

Callers 1

shouldRetryFunction · 0.85

Calls 2

getCurrentRetrySessionFunction · 0.85

Tested by

no test coverage detected