Authentication & GitHub · Contents
Authentication & GitHub

Sign in and connect GitHub

How GitHub OAuth works in Breaklytix, which permissions are requested, and how to reconnect or sign out.

Breaklytix uses GitHub OAuth as its only sign-in method. There is no Breaklytix password to create, reset or leak. The account you authorize is the account that owns your repositories, alerts and billing record.

What happens when you sign in

  • The login page redirects to GitHub with a one-time state value stored in the browser session.
  • GitHub asks you to authorize the Breaklytix OAuth app and then redirects back to /auth/callback.
  • The backend exchanges the temporary code for a GitHub access token and reads your GitHub profile and verified email.
  • The GitHub token is encrypted with Fernet before it is stored. It is never returned to the browser.
  • The backend issues a signed session token valid for 30 days; the frontend keeps it in browser storage.
  • On first sign-in you accept the Privacy Policy and Terms before using the dashboard.

Permissions requested

The OAuth app requests three scopes: read:user, user:email and repo. The first two read your public profile and verified email address. The repo scope is broader than read-only: it lets Breaklytix read public and private repositories and open a pull request after you approve a specific proposed fix.

That breadth is deliberate. Repository scanning needs to read private source files for private repositories, and auto-fix PRs need permission to create a branch and open a pull request. Breaklytix does not push to a repository, merge a pull request, or change code unless you approve a specific proposed fix.

Where the token goes

  • The GitHub token is encrypted at rest with TOKEN_ENCRYPTION_KEY and is only decrypted server-side for a scan or an approved fix.
  • The token is never sent to the browser, placed in a URL, written to an email or included in logs.
  • The browser only holds the signed session token, which expires after 30 days and can be invalidated by signing out.
  • Provider API keys you add for monitoring are encrypted the same way and displayed only as masked identifiers.

Reconnect, sign out and revoke

  • Sign in again from the login page if you changed permissions on GitHub or the stored token is no longer valid. The new authorization replaces the old connection.
  • Signing out clears the session token in this browser. Settings → General places the same sign-out action behind a confirmation; it does not delete your account, repositories, scan history or billing record.
  • To remove Breaklytix's GitHub authorization entirely, revoke the OAuth app from GitHub → Settings → Applications. The encrypted token on file stops working immediately and scans fail until you sign in again.
  • Revoking on GitHub is the authoritative disconnect. Breaklytix cannot use a revoked token, and it never receives a new one without your authorization.

Sign-in troubleshooting

  • Private or unverified GitHub email: verify the address on GitHub, then sign in again. Breaklytix requires a verified email for account notices and alerts.
  • redirect_uri_mismatch: the OAuth app does not have this site's /auth/callback URL registered. Use the canonical https://breaklytix.site/auth/callback address.
  • Application suspended: the GitHub OAuth app has been suspended; contact support before retrying.
  • Session expired: sign in again. A 401 from the API usually means the session token is missing or no longer valid.
TipIf you work with client repositories through an agency, do not share your personal OAuth token. Agency Mode uses a separate GitHub App installation with its own scoped access.

Does Breaklytix store my GitHub password?

No. Authentication happens on GitHub. Breaklytix never receives your password; it receives an OAuth access token after you authorize the app.

Why does Breaklytix ask for the repo scope?

The repo scope is required to read private repositories and to open an auto-fix pull request after you approve one. It is broader than read-only, which is why a write only happens after you approve a specific proposed fix.

What happens if I sign out?

Signing out — including the Sign out of this browser action in Settings — clears the session token in this browser and leaves your account, repositories, scan history and billing record intact. To revoke Breaklytix's GitHub authorization completely, revoke the OAuth app on GitHub; scanning stops until you sign in again.

Related articles