FOR DEVELOPERS
Sign in via Fortodo
Let your users sign in with their Fortodo account — two lines of code, no backend required. Similar to Sign in with Google or Apple.

1
Via Fortodo Badge Button
Drops the official Via Fortodo badge image as a clickable button. Opens a sign-in modal.
Add the script
<script
src="https://www.fortodo.com/js/via-fortodo-badge.js"
data-client-id="YOUR_CLIENT_ID"
data-redirect-uri="https://yoursite.com/auth/callback"
data-scope="email openid profile"
></script>
<!-- Place where you want the button -->
<div id="via-fortodo-badge"></div>
<!-- Optional: handle sign-in result -->
<script>
window.onViaFortodoSignIn = function(user) {
console.log('Signed in:', user);
};
</script>2
Icon + Text Button
Renders a styled button with the Fortodo icon and the label "Sign in to [Your Site] via Fortodo".
<script src="https://www.fortodo.com/js/via-fortodo-button.js" data-client-id="YOUR_CLIENT_ID" data-redirect-uri="https://yoursite.com/auth/callback" data-site-title="Birri" data-scope="email openid profile" ></script> <!-- Place where you want the button --> <div id="via-fortodo-button"></div>
Script Parameters
| Attribute | Required | Description |
|---|---|---|
data-client-id | Yes | Your Fortodo Cognito app client ID |
data-redirect-uri | Yes | The URL Fortodo redirects to after sign-in |
data-scope | No | OAuth scopes. Default: email openid profile |
data-site-title | No (button only) | Your site name shown in the button label |
ℹ️ Getting a Client ID
To integrate Via Fortodo on your site, you need a Fortodo app client ID registered for your domain. Contact developers@fortodo.com or visit via.fortodo.com to register your application.