getUserInfo static method
Implementation
static Future<Map<String, dynamic>> getUserInfo(
{required UserInfoRequest request}) async {
try {
final response = await httpRetry(
() => http.get(
Uri.parse(request.configuration.userInfoEndpoint),
headers: {
"Authorization": "${request.tokenType} ${request.accessToken}"
},
),
);
if (response == null) throw UserInfoException(ERROR_INVALID_RESPONSE);
return response;
} on Exception catch (e) {
throw UserInfoException(e.toString());
}
}