Return from Apple, posted
POST
/api/auth/accounts/callback
const url = 'https://forge.example.com/api/auth/accounts/callback';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({code: 'example', state: 'example', error: 'example', user: 'example'})};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/auth/accounts/callback \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data code=example \ --data state=example \ --data error=example \ --data user=exampleApple posts its answer back here. Not a call for scripts.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
code
string
state
string
error
string
user
string
Example generated
code=example&state=example&error=example&user=exampleResponses
Section titled “Responses”Redirects the browser.
default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}