Skip to content

docs: clarify session hash usage in useRevokeSessions#212

Open
maho0638 wants to merge 1 commit into
Abstract-Foundation:mainfrom
maho0638:patch-1
Open

docs: clarify session hash usage in useRevokeSessions#212
maho0638 wants to merge 1 commit into
Abstract-Foundation:mainfrom
maho0638:patch-1

Conversation

@maho0638

@maho0638 maho0638 commented Jul 1, 2026

Copy link
Copy Markdown

Summary

Clarifies that useRevokeSessions accepts session hashes, not session creation transaction hashes.

Also updates the example to show getSessionHash(sessionConfig) before passing a hash to revokeSessionsAsync.

Why

The hook accepts SessionConfig | Hash, and the implementation converts SessionConfig values with getSessionHash before calling revokeKeys.

Referring to these values as creation transaction hashes can confuse developers trying to revoke sessions by hash.

Test plan

  • Documentation-only change
  • Verified this PR only updates abstract-global-wallet/agw-react/hooks/useRevokeSessions.mdx

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.

1 participant