saveToken static method
Persist and cache the token. Call this after a successful login.
Implementation
static Future<void> saveToken(String token, {required String key}) async {
_memoryToken = token;
final box = await Hive.openBox<String>('server_auth');
await box.put(key, token);
}