Yes, you can use Express and Passport. Although, you could write helper functions to issue and verify JWTs using jsonwebtoken, since the Next.js app will manage most of the user authentication/authorization logic.
If you are using Now 2 to deploy, you could even avoid Express and Passport altogether.
But answering your question, yes you can implement what I did in the tutorial to work with Express.
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.
Hey Ethan.
Yes, you can use Express and Passport. Although, you could write helper functions to issue and verify JWTs using
jsonwebtoken
, since the Next.js app will manage most of the user authentication/authorization logic.If you are using Now 2 to deploy, you could even avoid Express and Passport altogether.
But answering your question, yes you can implement what I did in the tutorial to work with Express.