Understand the access you receive
A linked account is an OnlyFans account shared with your app. An authorization records the accounts and permissions an owner grants. One authorization can include several accounts. Save the authorization, tokens, account IDs, and environment under the signed-in user in your app who started the request. An account ID alone does not grant access.Add Link to your app
Use a standard OAuth adapter or the OAuth helper. Your application owns session-bound callback state and ordinary token persistence. If you use Better Auth, follow Generic OAuth configuration.- Build an authorization URL with your registered callback URL and the permissions your feature needs.
- Open the URL in the user’s browser.
- Complete the callback with the current app user and browser session. Check that they match the session that started the request before consuming state.
- Exchange the one-use code and save the tokens under that customer registration.
- Let the user choose from the linked accounts.