restoreAuthSession method

Future<void> restoreAuthSession()

Restore auth session that saved from local storage.

Will use ClientOptions.localStorage for local storage operations.

Implementation

Future<void> restoreAuthSession() async {
  var session = await auth.getSession();
  var user = await auth.getUser();
  if (session != null) {
    _fetcher.setSession(session, user);
  }
}