Skip to content

Commit

Permalink
Fix context usage in README (#144)
Browse files Browse the repository at this point in the history
Fixes #133
  • Loading branch information
trevor-scheer committed Oct 27, 2023
1 parent 7d9a955 commit 2331482
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -87,14 +87,15 @@ const server = new ApolloServer<ContextValue>({

export default startServerAndCreateLambdaHandler(
server,
handlers.createAPIGatewayProxyEventV2RequestHandler({
handlers.createAPIGatewayProxyEventV2RequestHandler(),
{
context: async ({ event }) => {
// Do some parsing on the event (parse JWT, cookie, auth header, etc.)
return {
isAuthenticated: true,
};
},
}),
},
);
```

Expand Down

0 comments on commit 2331482

Please sign in to comment.