Skip to Content
API referenceSIWX ServerSrcInterfacesSiwxSession

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


SiwxSession

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

Represents a serializable session object derived from a verified CAIP-122 message. This can be stored in a cookie or JWT payload.

Properties

address

address: string

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

The verified CAIP-10 blockchain address.


chainId

chainId: string

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

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


domain

domain: string

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

The domain that issued the session.


expirationTime?

optional expirationTime?: string

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

ISO 8601 timestamp when the session expires, if set.


issuedAt

issuedAt: string

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

ISO 8601 timestamp when the session was issued.


nonce

nonce: string

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

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

Last updated on