Start a passkey login
curl --request POST \
--url https://api.next.orenda.finance/v1/auth/passkey/login \
--header 'x-program-id: <x-program-id>'import requests
url = "https://api.next.orenda.finance/v1/auth/passkey/login"
headers = {"x-program-id": "<x-program-id>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-program-id': '<x-program-id>'}};
fetch('https://api.next.orenda.finance/v1/auth/passkey/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.next.orenda.finance/v1/auth/passkey/login",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-program-id: <x-program-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.next.orenda.finance/v1/auth/passkey/login"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-program-id", "<x-program-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.next.orenda.finance/v1/auth/passkey/login")
.header("x-program-id", "<x-program-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/auth/passkey/login")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-program-id"] = '<x-program-id>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"authenticated": false,
"challenge": "PASSKEY",
"session_token": "3f1c2e8a-9b4d-4e6f-8a1b-2c3d4e5f6a7b",
"fido2options": {
"challenge": "q1n9bXJ0c2VjdXJlY2hhbGxlbmdl",
"timeout": 60000,
"rpId": "next.orenda.finance",
"userVerification": "preferred",
"allowCredentials": [
{
"type": "public-key",
"id": "AaIWjR2k8Qm3sV7tZ1pYxC"
}
]
}
}
}{
"success": false,
"code": "RESOURCE_NOT_FOUND",
"message": "Program issuer not found"
}{
"success": false,
"code": "VALIDATION_ERROR",
"message": "email is required"
}{
"success": false,
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error"
}Passkeys
Start a passkey login
Step 1 of signing in with a passkey. No request body. Returns a session_token and fido2options to pass to the browser’s navigator.credentials.get().
POST
/
v1
/
auth
/
passkey
/
login
Start a passkey login
curl --request POST \
--url https://api.next.orenda.finance/v1/auth/passkey/login \
--header 'x-program-id: <x-program-id>'import requests
url = "https://api.next.orenda.finance/v1/auth/passkey/login"
headers = {"x-program-id": "<x-program-id>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-program-id': '<x-program-id>'}};
fetch('https://api.next.orenda.finance/v1/auth/passkey/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.next.orenda.finance/v1/auth/passkey/login",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-program-id: <x-program-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.next.orenda.finance/v1/auth/passkey/login"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-program-id", "<x-program-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.next.orenda.finance/v1/auth/passkey/login")
.header("x-program-id", "<x-program-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/auth/passkey/login")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-program-id"] = '<x-program-id>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"authenticated": false,
"challenge": "PASSKEY",
"session_token": "3f1c2e8a-9b4d-4e6f-8a1b-2c3d4e5f6a7b",
"fido2options": {
"challenge": "q1n9bXJ0c2VjdXJlY2hhbGxlbmdl",
"timeout": 60000,
"rpId": "next.orenda.finance",
"userVerification": "preferred",
"allowCredentials": [
{
"type": "public-key",
"id": "AaIWjR2k8Qm3sV7tZ1pYxC"
}
]
}
}
}{
"success": false,
"code": "RESOURCE_NOT_FOUND",
"message": "Program issuer not found"
}{
"success": false,
"code": "VALIDATION_ERROR",
"message": "email is required"
}{
"success": false,
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error"
}⌘I