How Sessions Work with Pregenerated Wallets
For pregenerated wallets, the session is considered always active as long as the
UserShare
is loaded in the Para client instance. Traditional session expiration doesn’t apply in this scenario.Session Management Methods for Pre-Generated Wallets
When a UserShare is loaded via
setUserShare()
, the session remains active indefinitely. Methods like isSessionActive()
will return true as long as the UserShare remains loaded in the Para client instance.Learn More
Pregenerated Wallets
Best Practices
- UserShare Management: Ensure the UserShare remains loaded in the Para instance for continuous session availability
- Security: Store UserShares securely and never expose them in client-side code
- Session Verification: Remember that
isSessionActive()
will always return true for loaded pregenerated wallets