DEV Community

Discussion on: Next.js authentication with existing backend

Collapse
wparad profile image
Warren Parad

Will have to say, it's much easier to pull in a package such as federated auth to do this automatically. You don't need to set anything extra or understand how JWTs are supported to work to make sure the UI app works correctly.

Collapse
szymkab profile image
Szymon Kabelis Author

Well, I would say using next-auth doesn't require knowing JWTs but I've included that in the post because I think it's always better to know at least something about what you are using...

Collapse
wparad profile image
Warren Parad

Sure, but it's better than to put that as the perspective in the article. "Hey, this is difficult, there are packages to handle it, and here we are going to dive into why these packages exist and what they are providing."

Thread Thread
jaketone profile image
Jake

Quite an aggressive way of referring others to your own package. Thank you @szymkab for the simple concept.