useSessionKey provides programmatic access to session key lifecycle management: loading, setup, and revocation.
Import
Usage
Return Value
The current session key data loaded from the device Keychain, or
null if no key exists. Loaded automatically on mount.Triggers the full session key setup flow: generates a keypair, calls
onSignTransaction for user approval, and registers the public key with the backend. Returns the created key.Revokes the current session key on the backend and deletes it from the Keychain.
true during setupSessionKey or revokeSessionKey operations.Error from the most recent operation.
Re-reads the session key from the Keychain. Useful after external changes.

