Choose Your Integration
Redirect Flow
Redirect users to OFAuth’s authentication pages. Simple to implement.
Popup Flow
Show authentication in a popup. Best user experience.
How It Works
- Create a Link session with your redirect URL
- Redirect the user to OFAuth’s secure authentication page
- User authenticates on OFAuth (2FA and captcha handled automatically)
- Receive Connection ID via callback URL or webhook
Prerequisites
1
Complete Platform Profile
Set up your platform profile (app name, description, website, privacy policy) in the OFAuth Dashboard.
2
Create a Client App
Create a client app in Dashboard > Client Apps. Choose your app type (Redirect, Embed, or Whitelabel) and configure allowed redirect URIs or origins. Copy your
clientAppId.3
Get API Key
Get your API key from Dashboard > API Keys.
4
Set Permissions
Configure which OnlyFans data your platform can access in Dashboard > Client Apps > Settings > Access Permissions.
Redirect Flow
The simplest integration—redirect users to OFAuth’s hosted authentication pages.Step 1: Create a Link Session
Session Options
Step 2: Redirect User
Step 3: Handle the Callback
After authentication, users are redirected to your URL:Callback Parameters
Popup Flow (Embed Library)
Keep users in your app with a popup authentication experience.Installation
JavaScript Library Usage
Configuration Options
Success Metadata
Global Script (No Build)
Use the Connection
Once you have a Connection ID, make API calls:Reconnecting Expired Connections
When a connection expires, reconnect without creating duplicates:Security Best Practices
Server-Side Verification
Always verify session status server-side, never trust client-side data
HTTPS Only
Use HTTPS for all redirect URLs and API communications
Session Expiry
Link sessions expire after 1 hour. Create a new session if expired.
Allowed URIs
Configure exact redirect URLs in your dashboard. No wildcards.
Troubleshooting
Session Expired
Session Expired
Link sessions expire after 1 hour. Create a new session with
/v2/link/init.Invalid Redirect URL
Invalid Redirect URL
Add the URL to your client app’s Allowed Redirect URIs in Dashboard > Client Apps.
Popup Blocked
Popup Blocked
Ensure the popup is triggered by a user action (click event), not automatically.
CSP/CORS Issues (Embed)
CSP/CORS Issues (Embed)
Add your domain to your client app’s Allowed Origins in Dashboard > Client Apps.
Next Steps
Handle System Webhook Events
Get notified when connections change
API Reference
Full Link API documentation