Auth

Exchange a cookie session for raw Supabase tokens

One-shot endpoint called by the SPA during the CLI login flow (browser → localhost handoff). Requires a valid mnemom_session. Returns access + refresh tokens in the JSON body. Does not modify cookies.

post/auth/cli-exchange

Request

  • Base URL: https://api.mnemom.ai/v1
  • URL: https://api.mnemom.ai/v1/auth/cli-exchange
  • Auth: API key in cookie mnemom_session

Response

Tokens returned.

access_tokenstring required

Supabase JWT.

refresh_tokenstring required
expires_ininteger required

Seconds until access_token expires.

user_idstring uuid required
user_emailstring email nullable

Changes

No recorded changes to this operation across all 1 revision of this API.