Skip to content

Commit 5614568

Browse files
committed
jwt use log and enable aws
1 parent 967d556 commit 5614568

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/plugins/aws-sigv4/tests/aws-sigv4-incoming.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { createYoga } from 'graphql-yoga';
1010
import { describe, expect, it } from 'vitest';
1111
import { useAWSSigv4 } from '../src';
1212

13-
describe.skip('AWS Sigv4 Incoming requests', () => {
13+
describe('AWS Sigv4 Incoming requests', () => {
1414
const subgraphSchema = buildSubgraphSchema({
1515
typeDefs: parse(/* GraphQL */ `
1616
type Query {

packages/plugins/jwt-auth/src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function useJWT(
7676
executionRequest,
7777
subgraphName,
7878
setExecutionRequest,
79-
logger,
79+
log,
8080
}) {
8181
if (shouldForward && executionRequest.context?.jwt) {
8282
const jwtData: Partial<JWTExtendContextFields> = {
@@ -86,9 +86,10 @@ export function useJWT(
8686
token: forwardToken ? executionRequest.context.jwt.token : undefined,
8787
};
8888

89-
logger?.debug(
90-
`Forwarding JWT payload to subgraph ${subgraphName}, payload: `,
91-
jwtData.payload,
89+
log.debug(
90+
{ payload: jwtData.payload },
91+
'Forwarding JWT payload to subgraph %s',
92+
subgraphName,
9293
);
9394

9495
setExecutionRequest({

0 commit comments

Comments
 (0)