Begin a passwordless sign-in with a passkey
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/passkey/login/optionsimport requests
url = "https://app.trustivan.com/api/v1/auth/passkey/login/options"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.trustivan.com/api/v1/auth/passkey/login/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/passkey/login/options"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"options": {},
"token": "<string>"
}Begin a passwordless sign-in with a passkey
Discoverable-credential options: the browser offers whichever of this site’s passkeys the device holds. Public and rate limited.
POST
/
auth
/
passkey
/
login
/
options
Begin a passwordless sign-in with a passkey
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/passkey/login/optionsimport requests
url = "https://app.trustivan.com/api/v1/auth/passkey/login/options"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.trustivan.com/api/v1/auth/passkey/login/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/passkey/login/options"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"options": {},
"token": "<string>"
}