getUserInfo method

Future<UserInfo> getUserInfo()

Implementation

Future<UserInfo> getUserInfo() async {
  var uri = client.issuer.metadata.userinfoEndpoint;
  if (uri == null) {
    throw UnsupportedError('Issuer does not support userinfo endpoint.');
  }
  return UserInfo.fromJson(await _get(uri));
}