graphql-compose-mongoose
graphql-compose-mongoose copied to clipboard
JWT token verification code with graphql-compose-mongoose middleware
This is my token verification code (this code is working find for the Rest API)

and this one is the place I put the code to do a verification.

once I tried to send the query I got this Error instead;

What should I do?
Originally posted by @SithGit in https://github.com/graphql-compose/graphql-compose-mongoose/issues/158#issuecomment-781334826
You need to rewrite your tokenVerification function. It accepts 3 args (req, res, next), but you provide (context).