Authenticate securely using your Evrmore wallet
Authentication in progress...
Please sign this message with your Evrmore wallet:
Testing with evrmore-cli:
You can sign the message with evrmore-cli using this command:
evrmore-cli signmessage YOUR_ADDRESS "CHALLENGE_TEXT"
Replace YOUR_ADDRESS with your Evrmore address and CHALLENGE_TEXT with the challenge above.
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
}
});