Answer a sign-in's second-factor challenge with a passkey
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/mfa/passkey/verify \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"credential": {},
"challenge_token": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/mfa/passkey/verify"
payload = {
"token": "<string>",
"credential": {},
"challenge_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', credential: {}, challenge_token: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/mfa/passkey/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/mfa/passkey/verify"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"credential\": {},\n \"challenge_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Answer a second-factor challenge with a passkey
Counts against the challenge’s attempt limit exactly as a code does, and spends it on success.
POST
/
auth
/
mfa
/
passkey
/
verify
Answer a sign-in's second-factor challenge with a passkey
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/mfa/passkey/verify \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"credential": {},
"challenge_token": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/mfa/passkey/verify"
payload = {
"token": "<string>",
"credential": {},
"challenge_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', credential: {}, challenge_token: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/mfa/passkey/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/mfa/passkey/verify"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"credential\": {},\n \"challenge_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}