Apple Sign In — web callback
Apple form-posts here after consent. Verifies the identity token, upserts the user, then redirects to the web app with Avycenna tokens in the URL fragment.
Request Body
application/x-www-form-urlencoded
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/auth/oauth/apple/callback" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d ''null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Apple Sign In — web redirect GET
Redirect the browser to Apple's sign-in page. After approval, Apple posts back to `/oauth/apple/callback` which issues tokens and redirects to the app.
Apple Sign In — native iOS POST
The iOS app receives an `identity_token` from Sign in with Apple and posts it here. The server verifies the JWT with Apple's public keys and issues Avycenna tokens. Apple only sends the user's name on the very first sign-in; pass it as `user_name`.