initialize method

Future<Session?> initialize()

Initializes the SDK local storage and check if there is a surrent session.

Implementation

Future<Session?> initialize() {
  return storageProvider.openDatabase(name).then((value) => loadCurrentSession());
}