Skip to content

Exchange code

During a registration or authentication operation the @passlock/client library will return a code (alongside an id_token). You can send the code to your backend then use the REST API to verify it and obtain details about the passkey used.

GET /{tenancyId}/principal/{code} HTTP/1.1
Host: https://api.passlock.dev
Accept: application/json
Authorization: Bearer {apiKey}

See principal