userTokenLeaseTime property
set
userTokenLeaseTime
(int leaseTime)
Determines how long (in minutes) a user token can be stored in the persistent storage. Default value is 1440 minutes (1 day). If set to 0 or a negative value, the user token will not be stored in persistent storage and will remain in memory.
Implementation
set userTokenLeaseTime(int leaseTime) {
if (leaseTime <= 0) {
_userTokenStorage.allowPersistentUserTokenStorage = false;
} else {
_userTokenStorage
..allowPersistentUserTokenStorage = true
..leaseTime = leaseTime;
}
}