Guide to managing authentication sessions in Para for React Native applications
2 hours
by default, but can be configured to up to 30 days. To configure this parameter, please visit the Configuration section of the Developer Portal. A user signing a message or transaction extends the session by the duration of the session length.
isSessionActive()
to verify whether a user’s session is currently valid before performing authenticated operations.
keepSessionAlive()
method to extend an active session without requiring full reauthentication.
logout()
before reinitiating authentication when a session has expired to ensure all stored data is properly cleared.exportSession()
when you need to transfer session state to your server for performing operations on behalf of the user.
{ excludeSigners: true }
when exporting sessions for enhanced security.keepSessionAlive()
to prevent unexpected session expirations.