Begin proving the account with a passkey
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/passkeys/verify-options \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/auth/passkeys/verify-options"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/auth/passkeys/verify-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/passkeys/verify-options"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"options": {},
"token": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Begin proving the account with a passkey
The proof removing a passkey can take instead of a code.
POST
/
auth
/
passkeys
/
verify-options
Begin proving the account with a passkey
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/passkeys/verify-options \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/auth/passkeys/verify-options"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/auth/passkeys/verify-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/passkeys/verify-options"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"options": {},
"token": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}