---
title: "Comment by NY on \"3 Simple Steps To Setup Authentication in Next.js\" | Hashnode"
description: "Thanks for this! Just wondering, what would the callback URL be when deployed to production? Replacing &quot;localhost&quot; with the app url doesn&#39;t seem t"
url: "https://hashnode.com/posts/3-simple-steps-to-setup-authentication-in-nextjs/5fa3ad7e3e634314b5178a93/comment/5fc209c9f1207e5b3cdf0ae8"
---

[Discussion](https://hashnode.com/posts/3-simple-steps-to-setup-authentication-in-nextjs/5fa3ad7e3e634314b5178a93)

Comment [3 Simple Steps To Setup Authentication in Next.js](https://hashnode.com/posts/3-simple-steps-to-setup-authentication-in-nextjs/5fa3ad7e3e634314b5178a93)

[NY](https://hashnode.com/@ny)

[Nov 28, 2020](https://hashnode.com/posts/3-simple-steps-to-setup-authentication-in-nextjs/5fa3ad7e3e634314b5178a93/comment/5fc209c9f1207e5b3cdf0ae8)

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...

[Bhanu Teja Pachipulusu](https://hashnode.com/@pbteja1998)

[Nov 28, 2020](https://hashnode.com/posts/3-simple-steps-to-setup-authentication-in-nextjs/5fa3ad7e3e634314b5178a93/comment/5fc209c9f1207e5b3cdf0ae8#reply-5fc2261129ee3663480c9b47)

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](https://next-auth.js.org/getting-started/example#deploying-to-production)

[Bhanu Teja Pachipulusu](https://hashnode.com/@pbteja1998)

[Nov 28, 2020](https://hashnode.com/posts/3-simple-steps-to-setup-authentication-in-nextjs/5fa3ad7e3e634314b5178a93/comment/5fc209c9f1207e5b3cdf0ae8#reply-5fc2290c55b779631e1acc2f)

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…](https://blog.bhanuteja.dev/nextjs-starter-with-authentication-react-17-typescript-tailwind-css-2-eslint)
