OAuth Authentication
Notifo supports sign-in with Google and GitHub.
Flow
- Redirect the user to the OAuth start URL
- The provider redirects back to Notifo's callback URL
- Notifo sets a
refreshTokencookie and redirects the browser to your frontend with theaccessTokenas 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...