Exchange Sign-In Handoff Code
curl --request POST \
--url https://api.zerodrive.dev/v1/auth/handoff/exchange \
--header 'Content-Type: application/json' \
--data '
{
"handoff_id": "<string>",
"code": "<string>",
"code_verifier": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({handoff_id: '<string>', code: '<string>', code_verifier: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/auth/handoff/exchange', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/auth/handoff/exchange"
payload = {
"handoff_id": "<string>",
"code": "<string>",
"code_verifier": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Exchange Sign-In Handoff Code
Exchange a single-use handoff code and PKCE verifier for a zdt_ device token.
POST
https://api.zerodrive.dev
/
v1
/
auth
/
handoff
/
exchange
Exchange Sign-In Handoff Code
curl --request POST \
--url https://api.zerodrive.dev/v1/auth/handoff/exchange \
--header 'Content-Type: application/json' \
--data '
{
"handoff_id": "<string>",
"code": "<string>",
"code_verifier": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({handoff_id: '<string>', code: '<string>', code_verifier: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/auth/handoff/exchange', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/auth/handoff/exchange"
payload = {
"handoff_id": "<string>",
"code": "<string>",
"code_verifier": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
