Skip to content

Exchange code

During a registration or authentication operation the @passlock/browser 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.

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

See principal