OnlyFans Authentication
Frontend components
You can integrate OFAuth's login directly into your website using our embed library. There are two ways to implement this:
1. Using the JavaScript library for advanced use cases and more control.
Install the embed library:
The handler API provides better performance by pre-initializing the login iframe. The iframe is created but hidden when create()
is called, and only displayed when open()
is called.
Handler API Reference
The create()
method accepts a configuration object with the following options:
The create()
method returns a Promise that resolves to a handler object with the following methods:
2. Using the global script for a quick and easy integration on any website.
TIP
You can style the button element any way you want, just make sure to keep the
data-ofauth-link
attribute.
Web Component Attributes
Web Component Events
Browser Support
The Link Embed component supports all modern browsers:
- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)