Start PKCE Sign-In Handoff
curl --request POST \
--url https://api.zerodrive.dev/v1/auth/handoff/start \
--header 'Content-Type: application/json' \
--data '
{
"code_challenge": "<string>",
"redirect_uri": "zerodrive://auth"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code_challenge: '<string>', redirect_uri: 'zerodrive://auth'})
};
fetch('https://api.zerodrive.dev/v1/auth/handoff/start', 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/start"
payload = {
"code_challenge": "<string>",
"redirect_uri": "zerodrive://auth"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Start PKCE Sign-In Handoff
Begin a PKCE browser sign-in flow for desktop apps or zd login.
POST
https://api.zerodrive.dev
/
v1
/
auth
/
handoff
/
start
Start PKCE Sign-In Handoff
curl --request POST \
--url https://api.zerodrive.dev/v1/auth/handoff/start \
--header 'Content-Type: application/json' \
--data '
{
"code_challenge": "<string>",
"redirect_uri": "zerodrive://auth"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code_challenge: '<string>', redirect_uri: 'zerodrive://auth'})
};
fetch('https://api.zerodrive.dev/v1/auth/handoff/start', 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/start"
payload = {
"code_challenge": "<string>",
"redirect_uri": "zerodrive://auth"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
