- Generate an Identity Secret Generate it here and save it, this will be the only time you will see this key. If you lose your key you’ll need to regenerate it and replace the key later.
-
Setup Backend
In your backend, hash the user’s email address using HMAC-SHA256 with the secret you just generated. Note that the secret is a hex string and must be decoded to text before use.
Here are some code snippets to help:
-
Send this hash to the Frontend and set it on the window object: