Comments (11)
@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.
I ran into the same issue and deleting the NEXTAUTH_URL environment variable fixed it.
from nextjs-postgres-nextauth-tailwindcss-template.
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.
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.
@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.
@jamesmurdza I am talking about setting callback URL in github OAuth.
from nextjs-postgres-nextauth-tailwindcss-template.
I am trying to develop in localhost.
from nextjs-postgres-nextauth-tailwindcss-template.
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.
I've made two video tutorials on how to deploy this project, by the way:
-
The first one forks this repository, then uses Vercel to deploy the GitHub repository: https://youtu.be/kIZ_AL3Wj8A
-
The second just deploys directly from the Vercel templates page as a shortcut: https://youtu.be/EynGNuFtKeI
from nextjs-postgres-nextauth-tailwindcss-template.
Thank you @jamesmurdza!
from nextjs-postgres-nextauth-tailwindcss-template.
@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)
- Could you add a protected route and page example? HOT 1
- Readme would be nice HOT 1
- feature request - docs on how to get this app working locally? HOT 2
- t
- Newer packages of tremor components require "use client" HOT 1
- Why LICENSE.md instead of LICENSE? HOT 1
- Application error: a client-side exception has occurred HOT 3
- Update to app dir HOT 1
- Error Trying to Run Template After Initial Config HOT 1
- "During the deployment, Vercel will prompt you to create a new Postgres database" this does not happen HOT 2
- Code: DEPLOYMENT_NOT_FOUND HOT 2
- Type error when deploying Next.js site to Vercel: "Property 'onClick' does not exist on type 'Disclosure.Button'" HOT 7
- Add Other Providers HOT 1
- Admin
- Deleted `.env` example HOT 1
- [auth][error] UnknownAction: Cannot parse action at /session . HOT 2
- Example file not found HOT 1
- Getting dependency errors HOT 5
- Errors on trying to login
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextjs-postgres-nextauth-tailwindcss-template.