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
This could be done at the same time as #108 or seprately. If you chose to just do the backend, let's not merge this in order to not break the code, and have the front end implementer branch out of this
Specs:
Add new migration to add login_nonce NUMBER column to profiles table
Create new get_login_nonce_by_wallet_address method in profile_repository (domain) to get a user's login nonce with their wallet address
Add get_login_nonce_by_wallet_address method implementation in postgres_profile_repository (infrastructure) to get a user's login nonce with their wallet address
Add a get_login_nonce query in the application layer
Add a /nonce/:wallet_addresspublic GET endpoint and handler that uses the get_user_login_nonce
Update the ethereum_address_verification_service implementation (verify_signature method) to use the current nonce for the given user instead of the constant nonce - and increment the nonce (see discussion)
This could be done at the same time as #108 or seprately. If you chose to just do the backend, let's not merge this in order to not break the code, and have the front end implementer branch out of this
Specs:
login_nonceNUMBER column toprofilestableget_login_nonce_by_wallet_addressmethod inprofile_repository(domain) to get a user's login nonce with their wallet addressget_login_nonce_by_wallet_addressmethod implementation inpostgres_profile_repository(infrastructure) to get a user's login nonce with their wallet addressget_login_noncequery in the application layer/nonce/:wallet_addresspublic GET endpoint and handler that uses theget_user_login_nonceethereum_address_verification_serviceimplementation (verify_signaturemethod) to use the current nonce for the given user instead of the constant nonce - and increment the nonce (see discussion)In next ticket #108
/nonce/:wallet_addressGET endpoint to get the nonce and sign it instead of the constant nonce