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.

Via Fortodo
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

AttributeRequiredDescription
data-client-idYesYour Fortodo Cognito app client ID
data-redirect-uriYesThe URL Fortodo redirects to after sign-in
data-scopeNoOAuth scopes. Default: email openid profile
data-site-titleNo (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.