isLoggedIn method
Implementation
FutureOr<bool> isLoggedIn() async {
if (!_isInitializationComplete)
throw StateError(
'You must call processStartupAuthentication before using this library.');
if (_identity == null) return false;
if (!isTokenAboutToExpire) return true;
if (this.autoRefresh) await refresh();
return hasTokenExpired;
}