Skip to Content

toSession()

toSession(parsed): SiwxSession

Defined in: siwx-server/src/types.ts:275 

Converts a verified CAIP-122 message into a SiwxSession: keeps address, chainId, domain, nonce, issuedAt and expirationTime. Pure function.

Parameters

parsed

SiwxMessageFields

The verified message, for example result.data of verifySiwxPayload.

Returns

SiwxSession

The session object to store or sign.

Last updated on