⌁
Demo dApp
A test relying party for Web3Keys SSO
Sign in with Web3Keys
This page mimics a third-party dApp asking Web3Keys to authenticate a visitor. Click the button — a popup at web3keys.com/sso opens, you pick an identity, and a signed ID token comes back here. The signature is verified entirely in your browser; this page never touches your private key.
You signed in
Handle
—Display name—
Public key
—Address
—Audience
—Expires—
Signature—
Raw ID token (JWT-shaped, secp256k1-signed)
Decoded header + payload
Integrate in your own page
HTML drop-in
<script src="https://web3keys.com/sdk.js"></script>
<div data-web3keys-signin data-client-id="myapp.example.com"></div>
<script>
document.addEventListener('web3keys-signin', (e) => {
const { pubKey, handle, displayName, idToken } = e.detail;
// POST idToken to your backend; verify it there.
});
</script>
JS API
const result = await Web3Keys.signIn({
clientId: 'myapp.example.com',
nonce: yourServerProvidedNonce,
});
// result = { pubKey, address, handle, displayName, idToken }