Search posts, tags, users, and pages
In this tutorial, we will see how to easily set up authentication for Next.js apps. Step 1. Create Next.js application yarn create next-app next-auth # npx create-next-app next-auth This will create a new Next.js application. You can remove unnecess...
Bhanu Teja Pachipulusu
@pbteja1998 · India
Full-Stack Developer & Entrepreneur
Full-Stack Developer, Entrepreneur and Co-Founder of Coderplex. Building https://coderplex.in Checkout my portfolio at https://bhanuteja.dev
Markdown supported · ⌘↵ to post
NY
Thanks for this! Just wondering, what would the callback URL be when deployed to production? Replacing "localhost" with the app url doesn't seem to work...
Check whether you have http or https. Also check if you have set NEXTAUTH_URL to the url of the application url or not.
next-auth.js.org/getting-started/example
Check this blog post where I have shown deploying an application which also has NextAuth (GitHub Auth and Password-less Auth)
blog.bhanuteja.dev/nextjs-starter-with-authentica…
Victoria Lo
Super useful! Thanks Bhanu :)
NY
Thanks for this! Just wondering, what would the callback URL be when deployed to production? Replacing "localhost" with the app url doesn't seem to work...