Advanced
RK-1
Use this path when your site issues its own one-time challenge and verifies a device-signed proof. The default quickstart on the home page is enough for most sites.
Your server posts a challenge, the person approves in Rhea Key, and you verify the signature against that exact challenge before creating a session. The rhea-success event fires only after your verifier accepts the result.
<script src="https://rheakey.com/sdk/rhea.js" async></script>
<rhea-button app-name="My App"></rhea-button>
<script>
document.addEventListener("rhea-success", () => location.reload());
</script>The package verifier is createRk1Verifier from @rheakey/sdk/rk1, once the package is published. Until then, copy packages/rheakey-sdk from the Rhea Key repository or start with the hosted script above.
