intialize static method

Future<void> intialize({
  1. required String storagePath,
})

Intiailize the auth addons.

This must be called only once on the app

Implementation

static Future<void> intialize({required String storagePath}) async {
  Hive.init(storagePath);
  await Hive.openBox(_boxName);
  _initListeners();
  await recoverPersistedSession();
}