Skip to Content
Packages@tuwaio/siwx-reactFunctionscreateSatelliteSiwxSigner()

createSatelliteSiwxSigner()

createSatelliteSiwxSigner(activeConnection): Promise<(message) => Promise<string>>

Defined in: siwx-react/src/satelliteHelpers.ts:123 

Returns the signMessage method of an active Satellite Connect connection, to be used as signer in useSiwx().signIn.

Parameters

activeConnection

MinimalSatelliteConnection

The active connection.

Returns

Promise<(message) => Promise<string>>

A promise resolving to activeConnection.signMessage.

Throws

[SIWX-REACT] Connection missing signMessage capability. (as a rejected promise) when the connection has no signMessage.

Last updated on