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

Function makeSession

src/bridge/bridgeEnabled.test.ts:8–19  ·  view source on GitHub ↗
(
  overrides: Partial<NonNullable<BridgeEligibilitySession>> = {},
)

Source from the content-addressed store, hash-verified

6} from './bridgeEnabled.js'
7
8function makeSession(
9 overrides: Partial<NonNullable<BridgeEligibilitySession>> = {},
10): NonNullable<BridgeEligibilitySession> {
11 return {
12 principalSource: 'managed_oauth',
13 scopes: ['user:inference', 'user:profile'],
14 identity: {
15 organizationUuid: 'org-123',
16 },
17 ...overrides,
18 }
19}
20
21describe('bridgeEnabled canonical runtime helpers', () => {
22 it('treats managed oauth with inference scope as a bridge-eligible principal', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected