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?
I've written an article on this. Sample projects also included.
https://dev.to/muratas/creating-nextjs-jwt-token-using-ldap-for-authentication-authorization-use-it-in-nestjs-graphql-backend-417a
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With