killjoy
killjoy

Reputation: 1052

authenticate jwt token created by next-auth in nestjs backend with passportjs

I have a nextjs react app. It uses next-auth to create JWT. This app will send post requests to a nestjs backend. I'm planning to send my next-auth JWT as bearer token in request header and my nestjs backend will need to validate it using passportjs.

Is this a reasonable use case? Can passportjs validate my next-auth JWT?

Upvotes: 4

Views: 5787

Answers (1)

Related Questions