Skip to content

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Oct 17, 2025

WHAT

  • allow WalletClientAuthenticator.authenticate to accept partial SIWE overrides via an optional third argument. This keeps nonce generation internal while merging provided SIWE fields before signing
  • (❗️Note) This PR contains a patch changeset

This should fix the following error:
image

@Ansonhkg Ansonhkg self-assigned this Oct 17, 2025
@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 14:57
@Ansonhkg Ansonhkg added 🐞 Bug Fix Something isn't working Feature v8 | Naga labels Oct 17, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the WalletClientAuthenticator.authenticate method to allow overriding specific SIWE (Sign-In with Ethereum) message fields while keeping nonce generation internal. The enhancement provides more flexibility for customizing authentication messages without exposing sensitive nonce generation logic.

  • Added a new optional third parameter for SIWE message field overrides
  • Introduced type safety with WalletClientAuthenticateOverrides type
  • Restructured the message building logic to merge overrides with default parameters

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Ansonhkg Ansonhkg added the Patch label Oct 17, 2025
Copy link
Collaborator

@glitch003 glitch003 left a comment

Choose a reason for hiding this comment

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

nice fix

@Ansonhkg Ansonhkg merged commit a7d6805 into naga Oct 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants