Skip to Content
API referenceSIWX ServerSrcInterfacesSiwxSession

API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)


SiwxSession

Defined in: packages/siwx-server/src/types.ts:52 

Represents a serializable session object derived from a verified CAIP-122 message.

Properties

address

address: string

Defined in: packages/siwx-server/src/types.ts:54 

The verified CAIP-10 blockchain address.


chainId

chainId: string

Defined in: packages/siwx-server/src/types.ts:56 

The CAIP-2 chain ID the session is bound to.


domain

domain: string

Defined in: packages/siwx-server/src/types.ts:58 

The domain that issued the session.


expirationTime?

optional expirationTime?: string

Defined in: packages/siwx-server/src/types.ts:64 

ISO 8601 timestamp when the session expires, if set.


issuedAt

issuedAt: string

Defined in: packages/siwx-server/src/types.ts:62 

ISO 8601 timestamp when the session was issued.


nonce

nonce: string

Defined in: packages/siwx-server/src/types.ts:60 

The nonce that was used. Must be invalidated server-side after use.

Last updated on