DEV Community

Discussion on: Comparing Gatsby and Next.js for website development

Collapse
 
eleloi profile image
eleloi

It is not possible to have Auth capabilities on Gatsby?

Collapse
 
ronaldaug profile image
ronaldaug

Based on my projects, most of the time, Auth are handle in headless API.

Collapse
 
alex_barashkov profile image
Alex Barashkov

It’s possible, but experience will be less pleasant. Next.js has much more tutorials and examples related to this topic and also there is a very nice next-auth library that does a great job.

Collapse
 
anothertobi profile image
Tobi

But afaik you can't use ssg with next-Auth. That's why decided against it

Thread Thread
 
lavgup profile image
lavgup

Yes, you can!

Thread Thread
 
anothertobi profile image
Tobi

Even with custom Auth pages?