Guide to managing authentication sessions in Para for web 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()
to extend an active session’s validity without requiring full reauthentication.
ParaProvider
component, you can leverage automatic session management:
keepSessionAlive()
periodically. You can disable this behavior by setting the disableAutoSessionKeepAlive
prop to true
if you prefer to manage sessions manually.refreshSession()
method when a session has expired.
refreshSession()
when sessions expire. The refresh flow is being improved in upcoming releases.exportSession()
when you need to transfer session state to your server for performing operations on behalf of the user.
excludeSigners
option to enhance security.UserShare
is loaded in the Para client instance. Traditional session expiration doesn’t apply in this scenario.keepSessionAlive()
or use the ParaProvider
automatic session management.
excludeSigners: true
unless server-side signing is explicitly needed.