Closed
Description
Hi!
I have a yoga subgraph.
I decode JWT payload from the gateway, and the subgraph consumes it as context.
import { YogaInitialContext } from 'graphql-yoga'
import { JWTExtendContextFields } from '@graphql-hive/gateway'
export interface GraphQLContext extends YogaInitialContext {
jwt: JWTExtendContextFields
}
And JWTExtendContextFields
is declared like this.
export type JWTExtendContextFields = {
payload: JwtPayload;
token: {
value: string;
prefix?: string;
};
};
The problem is JwtPayload
is fixed.
Metadata
Metadata
Assignees
Labels
No labels