MnemoPack OAuth Server

OAuth 2.0 Authorization Server for Third-Party Integrations

OAuth Endpoints

GET /api/oauth/authorize

Authorization endpoint for OAuth flow

POST /api/oauth/token

Token endpoint for code exchange

Authentication

GET /signin

User sign-in page with Google OAuth and magic links

GET /auth/callback

Authentication callback handler

OAuth 2.0 Flow Summary

  1. Third-party app redirects user to /api/oauth/authorize
  2. User signs in via /signin if not authenticated
  3. User gets redirected back to third-party app with authorization code
  4. Third-party app exchanges code for JWT tokens via /api/oauth/token
  5. Third-party app can use JWT tokens to access MnemoPack APIs
This OAuth server provides isolated JWT tokens for third-party integrations
without affecting the main web application's authentication state.