@Nirmalay Ghosh
Thanks for putting this together.
Is there a way to integrate NextAuth into NextJS without needing to supply the Database connection? Database is already interfaced with Strapi. Otherwise what is Strapi for?
database: process.env.NEXT_PUBLIC_DATABASE_URL,
Also, shouldn’t that be a private variable, not public?
I just tested leaving out the database field completely, and it works. The newly created user profile is visible in Strapi.
It would be great to extend this blog with adding Auth0 as well given the different use cases. The other Auth0/Strapi blog uses a different mechanism to connect which doesn’t seem to fit with NextJS/NextAuth