persistSession static method

Future<void> persistSession()

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);
}