Giter VIP home page Giter VIP logo

Comments (11)

jamesmurdza avatar jamesmurdza commented on June 23, 2024 1

@patelvivekdev Never mind, your example was right. I tested this out and /api/auth/callback/github works.

So for @abrambailey it should be something like http://localhost:3000/api/auth/callback/github

from nextjs-postgres-nextauth-tailwindcss-template.

jamesmurdza avatar jamesmurdza commented on June 23, 2024

I ran into the same issue and deleting the NEXTAUTH_URL environment variable fixed it.

from nextjs-postgres-nextauth-tailwindcss-template.

abrambailey avatar abrambailey commented on June 23, 2024

Would be nice to get some advice on this. What should we set NEXTAUTH_URL to? Also, in the github app what should we set Authorization callback URL to be? I'm also experiencing issues.

from nextjs-postgres-nextauth-tailwindcss-template.

patelvivekdev avatar patelvivekdev commented on June 23, 2024

Would be nice to get some advice on this. What should we set NEXTAUTH_URL to? Also, in the github app what should we set Authorization callback URL to be? I'm also experiencing issues.

You can set this callback URL in github OAuth.

https://example.com/api/auth/callback/github

from nextjs-postgres-nextauth-tailwindcss-template.

jamesmurdza avatar jamesmurdza commented on June 23, 2024

@patelvivekdev I don't think your suggestion is clear. The callback URL that you set is the URL in your own app that the user should be redirected to after login. All example URLs are arbitrary.

from nextjs-postgres-nextauth-tailwindcss-template.

patelvivekdev avatar patelvivekdev commented on June 23, 2024

@jamesmurdza I am talking about setting callback URL in github OAuth.

from nextjs-postgres-nextauth-tailwindcss-template.

abrambailey avatar abrambailey commented on June 23, 2024

I am trying to develop in localhost.

from nextjs-postgres-nextauth-tailwindcss-template.

jamesmurdza avatar jamesmurdza commented on June 23, 2024

I'm new to NextAuth and not familiar with how these callbacks work. I first guessed https://example.com/ which also works, but I guess that doesn't check for any errors returned from the callback.

from nextjs-postgres-nextauth-tailwindcss-template.

jamesmurdza avatar jamesmurdza commented on June 23, 2024

I've made two video tutorials on how to deploy this project, by the way:

from nextjs-postgres-nextauth-tailwindcss-template.

leerob avatar leerob commented on June 23, 2024

Thank you @jamesmurdza!

from nextjs-postgres-nextauth-tailwindcss-template.

jamesmurdza avatar jamesmurdza commented on June 23, 2024

@leerob Sure! What was it exactly that you had to do to fix the demo? Just removing NEXTAUTH_URL?

from nextjs-postgres-nextauth-tailwindcss-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.