persistSession static method
Persist the current user session on the disk
Implementation
static Future<void> persistSession() {
assert(auth.currentSession != null, 'There is not session to be persisted');
final box = Hive.box(_boxName);
return box.put(_sessionInfoKey, auth.currentSession!.persistSessionString);
}