Handle Apple sign in
Handles sign in with the apple.
POST
/{apiBasePath}/callback/applePath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
Request body
application/x-www-form-urlencodedcodestringThe Authorization code which will be exchanged for an access token
statestringA unique string used to mitigate CSRF attacks
Responses
303Redirects the user to the client's app.
404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Bodyapplication/x-www-form-urlencoded
Request
curl -X POST "/auth/callback/apple" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d '{
"code": "string",
"state": "string"
}'const response = await fetch("/auth/callback/apple", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: JSON.stringify({
"code": "string",
"state": "string"
})
});import requests
response = requests.post(
"/auth/callback/apple",
headers={
"Content-Type": "application/x-www-form-urlencoded"
},
json={
"code": "string",
"state": "string"
},
)Response
Redirects the user to the client's app.
"Not Found""Internal Error"