SatelliteSiwxState
Defined in: types.ts:350
SIWX (Sign-In With X) state read by the connection watchers (createEVMConnectionsWatcher from
@tuwaio/satellite-evm, createSolanaConnectionsWatcher from @tuwaio/satellite-solana and the React watcher
components). The result of useSiwxSession() from @tuwaio/siwx-react matches it.
The watchers disconnect the wallet when the user is not signed in and the sign-in was rejected or failed, and, while the user is signed in, when the wallet switches to another account (EVM and Solana) or chain (EVM) than the session. It is UI state: servers must verify the session themselves.
Properties
address?
optionaladdress?:string
Defined in: types.ts:365
Account of the session, as a CAIP-10 account ID (for example eip155:1:0xAb…) or a plain address. Compared
case-insensitively for EVM.
chainId?
optionalchainId?:string
Defined in: types.ts:367
Chain of the session, as a CAIP-2 chain ID (for example eip155:1) or a chain reference. Used for EVM only.
enabled?
optionalenabled?:boolean
Defined in: types.ts:352
false turns off the disconnect after a rejected or failed sign-in. Defaults to enabled.
isAuthenticated?
optionalisAuthenticated?:boolean
Defined in: types.ts:356
Same as isSignedIn; the name used by useSiwxSession() from @tuwaio/siwx-react.
isRejected?
optionalisRejected?:boolean
Defined in: types.ts:358
Whether the sign-in was rejected or failed.
isSignedIn?
optionalisSignedIn?:boolean
Defined in: types.ts:354
Whether the user is signed in.
session?
optionalsession?: {address?:string;chainId?:string; } |null
Defined in: types.ts:369
Session with address and chainId, used when the top-level fields are missing.
Union Members
Type Literal
{ address?: string; chainId?: string; }
address?
optionaladdress?:string
Account of the session.
chainId?
optionalchainId?:string
Chain of the session.
null
status?
optionalstatus?:string
Defined in: types.ts:360
Sign-in status. "error" counts as a rejected sign-in.