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

Function makeOauthSession

src/hooks/chromeExtensionAvailability.test.ts:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import type { CommandAvailabilitySession } from '../utils/commandAvailability.js'
4
5function makeOauthSession(): NonNullable<CommandAvailabilitySession> {
6 return {
7 headersKind: 'bearer',
8 providerPlan: {
9 mode: 'noumena_managed',
10 source: 'managed_principal',
11 staticKeyEnvVarName: null,
12 },
13 scopes: ['user:inference'],
14 subscription: {
15 subscriptionName: 'Max',
16 subscriptionType: 'max',
17 rateLimitTier: 'default',
18 },
19 }
20}
21
22describe('shouldRequireChromeManagedAccountNotice', () => {
23 test('requires managed account notice for external sessions without oauth access', () => {

Calls

no outgoing calls

Tested by

no test coverage detected