graphql-compose-mongoose icon indicating copy to clipboard operation
graphql-compose-mongoose copied to clipboard

JWT token verification code with graphql-compose-mongoose middleware

Open SithGit opened this issue 4 years ago • 1 comments

This is my token verification code (this code is working find for the Rest API) ddadadad

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

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

What should I do?

Originally posted by @SithGit in https://github.com/graphql-compose/graphql-compose-mongoose/issues/158#issuecomment-781334826

SithGit avatar Feb 18 '21 13:02 SithGit

You need to rewrite your tokenVerification function. It accepts 3 args (req, res, next), but you provide (context).

nodkz avatar Feb 18 '21 14:02 nodkz