You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to set up an admin user automatically for new installs.
I didn't think there was a trivial way to do this considering we are using github oauth, a long time ago there was the idea of allowing direct uname/pass login to the user account rather than via oauth but it isn't useful beyond this idea of preseeding the db with a local admin account.
Likewise it is also necessary to not ALWAYS being admin as the behaviour of the site in the general user case needs to be checked too.
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/authThe text was updated successfully, but these errors were encountered: