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

Function isOauthBackedFirstPartySession

src/services/api/withRetry.ts:124–130  ·  view source on GitHub ↗
(session: ResolvedAuthSession)

Source from the content-addressed store, hash-verified

122}
123
124function isOauthBackedFirstPartySession(session: ResolvedAuthSession): boolean {
125 return (
126 session.principalSource === 'managed_oauth' ||
127 session.principalSource === 'service_oauth_env' ||
128 session.principalSource === 'service_oauth_fd'
129 )
130}
131
132function getCurrentRetrySession(): ResolvedAuthSession {
133 return getAuthRuntime().getCurrentSession()

Calls

no outgoing calls

Tested by

no test coverage detected