Skip to content

Feat/siwe nonce frontend - #112

Merged
joelamouche merged 6 commits into
TheSoftwareDevGuild:mainfrom
tusharshah21:feat/siwe-nonce-frontend
Oct 14, 2025
Merged

Feat/siwe nonce frontend#112
joelamouche merged 6 commits into
TheSoftwareDevGuild:mainfrom
tusharshah21:feat/siwe-nonce-frontend

Conversation

@tusharshah21

Copy link
Copy Markdown
Collaborator

Adds dynamic nonce authentication to prevent replay attacks in SIWE flow.

Changes:

  • Backend: Added login_nonce column, /auth/nonce/:address endpoint, dynamic signature verification
  • Frontend: Dynamic nonce fetching for all profile operations (create/update/delete)
  • Security: Nonces increment per user, preventing signature reuse

Testing:
✅ Profile creation uses nonce 1
✅ Subsequent operations increment nonces
✅ MetaMask shows proper SIWE messages

closes #107

@joelamouche
joelamouche changed the base branch from main to siwe_backend October 13, 2025 08:02
@joelamouche
joelamouche changed the base branch from siwe_backend to main October 13, 2025 08:03

@oscarwroche oscarwroche left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@tusharshah21

Copy link
Copy Markdown
Collaborator Author

updated the branch too, let me know if there are any changes that you need

@joelamouche
joelamouche merged commit c5b9c19 into TheSoftwareDevGuild:main Oct 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement SIWE for the front end

3 participants