getSubjectInfo method

B2CUserInfo? getSubjectInfo(
  1. String subject
)

Returns subject's stored information.

Returns a B2CUserInfo object or null if the subject does not exists.

Implementation

B2CUserInfo? getSubjectInfo(String subject) {
  if (_users.containsKey(subject)) {
    var user = _users[subject]!;
    return B2CUserInfo(subject, user.username, user.idTokenClaims!);
  }
  return null;
}