email

Handle Google OAuth redirect — exchange code, store connection, trigger scan.

Every failure past state verification redirects to the frontend with email_error: the web flow runs this in a popup that only closes itself from the page that redirect lands on, so an exception here would leave the popup showing a bare 500 and the opener waiting forever.

get/email/oauth/callback

Request

  • Base URL
    https://stardrift.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://stardrift.ai/email/oauth/callback
  • Auth
    none declared

Query parameters

statestring required
codestring nullable
errorstring nullable

Response

Successful Response

unknown required

Changes

    • info

      added the new optional query request parameter error

    • info

      the query request parameter code became optional

    • info

      query request parameter code list-of-types was widened by adding types null

    • info

      for the query request parameter code, the type was generalized from string to no type