Sign up to Citizen to get started.

Allow customers to login to your site without passwords.

1. Add our sign-in SDK to the html header of your webpage.

<script src=""/>

2. Initialise the Citizen Sign-in modal


window.citizenAsyncInit = function () {
mode: 'modal',


3. Provide a callback function for successful login.

In most scenarios, this will simply set a cookie and redirect.


let citizenSignInCallback = function(response) {


4. Add the Citizen Sign-in button to your webpage.

Adding a button with an onclick function is enough for most scenarios.


<button class="ctznSigninButton ctznButtonSigninSubmit" onclick="signIn()">SIGN IN WITH</button>



let signIn = function() {