Start signing in with X
Returns the X authorization URL to send the browser to. The flow finishes at the callback below, which returns the browser to `returnTo`.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Start of the X sign-in flow
Response Body
application/json
curl -X POST "https://example.com/auth/login/x/start" \ -H "Content-Type: application/json" \ -d '{ "handoffId": "login-2f8a1c", "handoffChallenge": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk" }'{ "authorizeUrl": "string"}Authenticate user POST
Authenticate using wallet signature (nonce) or email/password
Finish signing in with X GET
Redirect target for X. Settles the Pear account that has this X account connected, and never creates one. Redirects to the frontend with `x_login`, `x_handoff`, and on success an `x_ticket` fragment to redeem below. Always redirects, never renders an error.