Skip to Content
API referenceSatellite Siwe Next AuthSrcComponentsuseSiweSignature()

@tuwaio/satellite-connect-monorepo


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