Finish a passwordless sign-in
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/passkey/login \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"credential": {}
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/passkey/login"
payload = {
"token": "<string>",
"credential": {}
}
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: {}})
};
fetch('https://app.trustivan.com/api/v1/auth/passkey/login', 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/passkey/login"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"credential\": {}\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"
}Finish a passwordless sign-in
Verifies the assertion (signature, origin, relying party, user verification, single-use challenge, signature counter) and sets the session cookies, through the same SSO enforcement and account checks as a password sign-in. A cloned authenticator (counter went backwards) is refused.
POST
/
auth
/
passkey
/
login
Finish a passwordless sign-in
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/passkey/login \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"credential": {}
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/passkey/login"
payload = {
"token": "<string>",
"credential": {}
}
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: {}})
};
fetch('https://app.trustivan.com/api/v1/auth/passkey/login', 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/passkey/login"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"credential\": {}\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"
}