Skip to Content
API referenceSatellite SIWESrcComponentsuseSiweSignature()

API Reference for TUWA Satellite headless wallet connectivity and session state management.


useSiweSignature()

useSiweSignature(__namedParameters): UseSiweSignatureResult

Defined in: packages/satellite-siwe-next-auth/src/hooks/useSiweSignature.tsx:31 

Function

useSiweSignature

Parameters

__namedParameters

wagmiConfig

Config

Returns

UseSiweSignatureResult

Description

A low-level hook that handles the core SIWE cryptographic flow: getting the nonce, creating the message, and getting the signature using Wagmi/Viem. This is the building block for custom backend authentication.

Example

// const { getSiweSignature, isReadyToSign, isRejected } = useSiweSignature();
Last updated on