Skip to content

Commit bd15b5c

Browse files
committed
lol
1 parent 8252ea2 commit bd15b5c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/services/server/src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ import { asyncStorage } from './async-storage';
6565
import { env } from './environment';
6666
import { graphqlHandler } from './graphql-handler';
6767
import { clickHouseElapsedDuration, clickHouseReadDuration } from './metrics';
68-
import { createPublicGraphQLHandler } from './public-graphql-handler';
6968
import { createOtelAuthEndpoint } from './otel-auth-endpoint';
69+
import { createPublicGraphQLHandler } from './public-graphql-handler';
7070
import { initSupertokens, oidcIdLookup } from './supertokens';
7171

7272
export async function main() {
@@ -460,16 +460,18 @@ export async function main() {
460460
handler: graphql,
461461
});
462462

463+
const authN = new AuthN({
464+
strategies: [organizationAccessTokenStrategy],
465+
});
466+
463467
server.route({
464468
method: ['GET', 'POST'],
465469
url: '/graphql-public',
466470
handler: createPublicGraphQLHandler({
467471
registry,
468472
logger: logger as any,
469473
hiveUsageConfig: env.hive,
470-
authN: new AuthN({
471-
strategies: [organizationAccessTokenStrategy],
472-
}),
474+
authN,
473475
tracing,
474476
}),
475477
});

0 commit comments

Comments
 (0)