Skip to content

GitHub OAuth

GitHub OAuth lets members sign in to your forum using their GitHub account. It takes about five minutes to set up.


  1. Go to github.com/settings/developers and click New OAuth App
  2. Fill in the fields:
FieldValue
Application nameYour forum name
Homepage URLhttps://your-forum-domain.com
Authorization callback URLhttps://your-forum-domain.com/api/v1/auth/oauth/github/callback
  1. Leave Enable Device Flow unchecked
  2. Click Register application

After registering, GitHub shows you the app page. Copy the Client ID.

Click Generate a new client secret, then copy the secret immediately — GitHub only shows it once.


In your forum’s admin panel go to Admin → Integrations:

  1. Enable Sign in with GitHub
  2. Paste your Client ID
  3. Paste your Client Secret
  4. Click Save

GitHub sign-in will appear on the login and registration pages immediately.


Clicking the GitHub button shows an offline page This was a known issue with the PWA service worker intercepting the OAuth redirect. It is fixed in Nexus v0.2.5-beta and later. If you are on an older version, update with sudo nexus-update.

“redirect_uri mismatch” error from GitHub The callback URL registered in your GitHub OAuth App doesn’t match what Nexus is sending. Double-check that the Authorization callback URL is exactly https://your-forum-domain.com/api/v1/auth/oauth/github/callback with no trailing slash.

“Bad credentials” or blank error The client secret is likely wrong. Generate a new one on GitHub and re-enter it in the admin panel.