Introduction
Embed Fiskil's consent flow inside your application
AI Actions
The Fiskil Link Widget provides a seamless way to integrate Fiskil's consent flow directly into your application. Instead of redirecting users to an external page, you can embed the entire account linking experience within your app's UI.
Benefits
- Seamless User Experience: Keep users within your app during the consent flow
- Easy Integration: Single function call to launch the consent UI
- Customizable: Matches your branding configured in the Fiskil Console
- Reliable: Handles edge cases and errors automatically
How It Works
- Create an Auth Session on your server
- Pass the
auth_session_idto the Link SDK on the client - The SDK renders the consent flow in an overlay
- Once complete, you receive the
consent_idin the callback
Quick Example
import { link } from '@fiskil/link';
const flow = link('auth_session_id');
try {
const result = await flow;
console.log('Success! Consent ID:', result.consentID);
} catch (err) {
console.error('Link error:', err);
}Next Steps
- Integrating the Link SDK - Full integration guide
- Flow Overview - Understand the consent flow steps
Was this page helpful?