getUserInfo method

  1. @override
Future<User?> getUserInfo()
override

Retrieves stored user information from the secure storage.

Implementation

@override
Future<User?> getUserInfo() async {
  final userInfoString = _authenticatorProvider.getUserInfo();
  if (userInfoString == null) {
    return null;
  }
  final Map<String, dynamic> jsonMap = jsonDecode(userInfoString);
  final claims = OpenIdClaims.fromJson(jsonMap);
  return User.fromUserInfo(claims);
}