File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/services/server/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ import { asyncStorage } from './async-storage';
65
65
import { env } from './environment' ;
66
66
import { graphqlHandler } from './graphql-handler' ;
67
67
import { clickHouseElapsedDuration , clickHouseReadDuration } from './metrics' ;
68
- import { createPublicGraphQLHandler } from './public-graphql-handler' ;
69
68
import { createOtelAuthEndpoint } from './otel-auth-endpoint' ;
69
+ import { createPublicGraphQLHandler } from './public-graphql-handler' ;
70
70
import { initSupertokens , oidcIdLookup } from './supertokens' ;
71
71
72
72
export async function main ( ) {
@@ -460,16 +460,18 @@ export async function main() {
460
460
handler : graphql ,
461
461
} ) ;
462
462
463
+ const authN = new AuthN ( {
464
+ strategies : [ organizationAccessTokenStrategy ] ,
465
+ } ) ;
466
+
463
467
server . route ( {
464
468
method : [ 'GET' , 'POST' ] ,
465
469
url : '/graphql-public' ,
466
470
handler : createPublicGraphQLHandler ( {
467
471
registry,
468
472
logger : logger as any ,
469
473
hiveUsageConfig : env . hive ,
470
- authN : new AuthN ( {
471
- strategies : [ organizationAccessTokenStrategy ] ,
472
- } ) ,
474
+ authN,
473
475
tracing,
474
476
} ) ,
475
477
} ) ;
You can’t perform that action at this time.
0 commit comments