Google OAuth — web redirect
Redirect the browser to Google's OAuth consent screen. After approval, Google redirects back to `/oauth/google/callback` which issues tokens and redirects to the app.
Response Body
application/json
curl -X GET "https://example.com/api/v1/auth/oauth/google"nullApple 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`.
Google OAuth — web callback GET
Google redirects here after consent. Exchanges the code for tokens, upserts the user, then redirects to the web app with Avycenna tokens in the URL fragment.