getUserInfo method

Future<UserInfo> getUserInfo ()

Implementation

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