Open eatyourgreens opened 2 hours ago
Some notes on setting up GItHub auth for local development:
{origin}/api/auth/callback/{provider}
.env
GITHUB_ID
GITHUB_SECRET
NEXTAUTH_URL
Looks promising…
Once you're logged in, you'll need to find your user record in the User table, and set admin to true.
admin
It would be useful to set up an admin user automatically for new installs.
Some notes on setting up GItHub auth for local development:
{origin}/api/auth/callback/{provider}
for the callback URL so http://localhost:3000/api/auth/callback/github.env
.GITHUB_ID
: client ID.GITHUB_SECRET
: client secret.NEXTAUTH_URL
: http://localhost:3000/api/auth