Sign in with a passkey: opens a passkey-level session (counts as two factors)
POST
/v1/auth/passkey/verify
const url = 'https://api.replifier.com/v1/auth/passkey/verify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"response":{"id":"example","rawId":"example","type":"public-key","response":{"additionalProperty":"example"},"clientExtensionResults":{"additionalProperty":"example"},"authenticatorAttachment":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/auth/passkey/verify \ --header 'Content-Type: application/json' \ --data '{ "response": { "id": "example", "rawId": "example", "type": "public-key", "response": { "additionalProperty": "example" }, "clientExtensionResults": { "additionalProperty": "example" }, "authenticatorAttachment": "example" } }'Not subject to the email code limits. If the browser already had a session for the same user, it replaces it.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
response
required
object
id
required
string
rawId
required
string
type
required
string
response
required
object
key
additional properties
clientExtensionResults
object
key
additional properties
authenticatorAttachment
string
Responses
Section titled “Responses”Session created
Media typeapplication/json
object
user
required
object
id
required
string
email
required
string
name
required
string
locale
required
string
emailVerified
required
boolean
session
required
object
id
required
string
expiresAt
required
string
authLevel
required
string
Example generated
{ "user": { "id": "example", "email": "example", "name": "example", "locale": "example", "emailVerified": true }, "session": { "id": "example", "expiresAt": "example", "authLevel": "example" }}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}