i think i found an fix for that. the problem is that the oauth2 strategy is looking for req.query.code
so one fix is just write the token in the req.query.code in the getRequest function
getRequest(context: ExecutionContext) { const ctx = GqlExecutionContext.create(context); const req = ctx.getContext().req; req.query.code = tokenExtractor(req); return req; }
did think that this fixes the issue but no. does anyone has experience with nestjs + passport (google) and graphql?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
i think i found an fix for that.
the problem is that the oauth2 strategy is looking for req.query.code
so one fix is just write the token in the req.query.code in the getRequest function
did think that this fixes the issue but no.
does anyone has experience with nestjs + passport (google) and graphql?