You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use Sign in With Ethereum (https://github.com/spruceid/siwe) for authentication with lucia, but am not sure of a good way to do it. SIWE involves generating a unique nonce on the server. The client signs a message with their private key containing this nonce + other info, then the server validates this message by checking that the signature is valid, and the nonce matches.
Is there any way to handle storing the nonce on the server within lucia, specifically when the user has not signed up yet (does not have a user id)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I would like to use Sign in With Ethereum (https://github.com/spruceid/siwe) for authentication with lucia, but am not sure of a good way to do it. SIWE involves generating a unique nonce on the server. The client signs a message with their private key containing this nonce + other info, then the server validates this message by checking that the signature is valid, and the nonce matches.
Is there any way to handle storing the nonce on the server within lucia, specifically when the user has not signed up yet (does not have a user id)?
Beta Was this translation helpful? Give feedback.
All reactions