Get passkey login options
curl --request POST \
--url https://aropay.aro.media/api/v1/auth/passkey/options \
--header 'Content-Type: application/json' \
--data '
{
"email": "you@company.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'you@company.com'})
};
fetch('https://aropay.aro.media/api/v1/auth/passkey/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aropay.aro.media/api/v1/auth/passkey/options"
payload = { "email": "you@company.com" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"options": {}
}
}{
"ok": false,
"error": {
"code": "validation_error",
"message": "Request validation failed.",
"details": [
{
"path": "amount",
"message": "Required"
}
]
}
}{
"ok": false,
"error": {
"code": "rate_limited",
"message": "Too many requests. Try again shortly."
}
}{
"ok": false,
"error": {
"code": "internal_error",
"message": "An unexpected error occurred."
}
}Auth
Get passkey login options
Produce WebAuthn authentication options. Include email to scope the
challenge to one account, or omit it for usernameless login with
discoverable credentials. The challenge is bound to the client via a
signed, short-lived cookie that must accompany the subsequent
POST /auth/passkey/verify.
POST
/
auth
/
passkey
/
options
Get passkey login options
curl --request POST \
--url https://aropay.aro.media/api/v1/auth/passkey/options \
--header 'Content-Type: application/json' \
--data '
{
"email": "you@company.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'you@company.com'})
};
fetch('https://aropay.aro.media/api/v1/auth/passkey/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aropay.aro.media/api/v1/auth/passkey/options"
payload = { "email": "you@company.com" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"options": {}
}
}{
"ok": false,
"error": {
"code": "validation_error",
"message": "Request validation failed.",
"details": [
{
"path": "amount",
"message": "Required"
}
]
}
}{
"ok": false,
"error": {
"code": "rate_limited",
"message": "Too many requests. Try again shortly."
}
}{
"ok": false,
"error": {
"code": "internal_error",
"message": "An unexpected error occurred."
}
}