Skip to main content

OAuth Authentication

Notifo supports sign-in with Google and GitHub.

Flow

  1. Redirect the user to the OAuth start URL
  2. The provider redirects back to Notifo's callback URL
  3. Notifo sets a refreshToken cookie and redirects the browser to your frontend with the accessToken as a query parameter

Google

GET /auth/google

Initiates Google OAuth. Redirect your user to this URL.

Callback: GET /auth/google/callback — handled internally; redirects to the frontend.

GitHub

GET /auth/github

Initiates GitHub OAuth.

Callback: GET /auth/github/callback — handled internally.

After OAuth

Extract the accessToken from the redirect URL's query string and store it securely (e.g. in memory or sessionStorage). Use it as a Bearer token for subsequent API calls.

https://app.notifo.cloud/auth/callback?token=eyJ...