Guide to managing authentication sessions in Para for Flutter applications
Para provides a comprehensive set of methods for managing authentication sessions in Flutter applications. These sessions are crucial for secure transaction signing and other authenticated operations.
The Para session length is 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.
Use isSessionActive()
to verify whether a user’s session is currently valid before performing authenticated operations.
In Flutter applications, it’s especially important to check the session status before allowing users to access authenticated areas of your app due to the persistence of local storage between app launches.
Example usage:
When a session has expired, Para recommends initiating a full authentication flow rather than trying to refresh the session.
For Flutter applications, always call logout()
before reinitiating authentication when a session has expired to ensure all stored data is properly cleared.
Use exportSession()
when you need to transfer session state to your server for performing operations on behalf of the user.
Example implementation:
Explore more advanced features and integrations with Para in Flutter:
Guide to managing authentication sessions in Para for Flutter applications
Para provides a comprehensive set of methods for managing authentication sessions in Flutter applications. These sessions are crucial for secure transaction signing and other authenticated operations.
The Para session length is 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.
Use isSessionActive()
to verify whether a user’s session is currently valid before performing authenticated operations.
In Flutter applications, it’s especially important to check the session status before allowing users to access authenticated areas of your app due to the persistence of local storage between app launches.
Example usage:
When a session has expired, Para recommends initiating a full authentication flow rather than trying to refresh the session.
For Flutter applications, always call logout()
before reinitiating authentication when a session has expired to ensure all stored data is properly cleared.
Use exportSession()
when you need to transfer session state to your server for performing operations on behalf of the user.
Example implementation:
Explore more advanced features and integrations with Para in Flutter: