loadUserProfile method
Implementation
FutureOr<KeycloakProfile?> loadUserProfile([bool forceReload = false]) async {
if (this._userProfile != null && !forceReload) {
return this._userProfile!;
}
if (!this._keycloak.authenticated) {
throw new Exception(
'The user profile was not loaded as the user is not logged in.');
}
return this._userProfile =
await promiseToFuture(this._keycloak.loadUserProfile());
}