Device Linking
Device linking allows native clients to exchange a short-lived link code for a full API token. The link code is created and approved in the web app, then exchanged by the device.
Exchange a link code
curl -X POST "https://api.fora.is/tokens/link/exchange" \
-H "Content-Type: application/json" \
-d '{
"code": "ABCD-EFGH",
"code_verifier": "..."
}'
If the code is valid and approved, the response contains a token and token ID.