Which accounts a token can access
An access token belongs to one authorization: the accounts and permissions an owner approved. It also belongs to one mode, such as Sandbox or Live. Thex-linked-account-id header selects one of those accounts. The ID alone does not grant access.
The linked-account list shows only accounts shared through that authorization. Removing an account from the list ends access through that authorization. It does not delete the OnlyFans account or remove access through other authorizations.
Keep each value in the right place
Before using an account, check the callback’s state and exchange its code on your server. Receiving a callback alone does not prove that access was approved.
Protect the callback
PKCE protects the callback code with a secret created for each sign-in attempt. Use the requiredS256 method and the exact callback URL registered for your app.
state is a random value that ties the callback to the browser session that started sign-in. Save it with that session and accept it only once. Reject missing, expired, changed, or reused values.
Authorization codes work once and expire after five minutes. Exchange the code on your server. Keep the PKCE verifier and client secret out of browsers and mobile app storage. See Authorize.