Evrmore Accounts
Integration Example

Evrmore Logo

Sign in with Evrmore

Authenticate securely using your Evrmore wallet

How to Integrate

Add the Evrmore Accounts JavaScript library to your web application:

<script src="{{ url_for('serve_static', path='evrmore-accounts.js') }}"></script>

Initialize the library and create a sign-in button:

// Initialize Evrmore Accounts
EvrmoreAccounts.init({
  apiUrl: '/api',
  autoRefresh: true,
  debug: false
});

// Create a sign-in button
EvrmoreAccounts.initSignInButton('#sign-in-button');

// Listen for authentication state changes
EvrmoreAccounts.onAuthStateChanged(function(user) {
  if (user) {
    console.log('User is signed in:', user);
    // Show authenticated UI
  } else {
    console.log('User is signed out');
    // Show sign-in UI
  }
});