v2 Auth

Google OAuth callback

Exchanges the code, upserts the account (email unique → a claimable account is auto-linked), sets the HttpOnly session cookie p2m_session, and, if state contains a device, links device→account and re-attaches the device's active jobs (owner_type=account_device). Returns an HTML success/error page.

get/api/v2/auth/google/callback

Request

  • Base URL: https://pdf2md.dev
  • URL: https://pdf2md.dev/api/v2/auth/google/callback
  • Auth: none required

Query parameters

codestring
statestring
errorstring

Response

Successful login (HTML)

Changes

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