registerUser static method
Implementation
static Future<void> registerUser(
{required UserRegistrationRequest request}) async {
try {
final response = await httpRetry(
() => http.get(
Uri.parse(request.configuration.registrationEndpoint!),
headers: {
"Authorization": "${request.tokenType} ${request.accessToken}"
},
),
);
if (response == null) throw UserInfoException(ERROR_INVALID_RESPONSE);
} on Exception catch (e) {
throw UserInfoException(e.toString());
}
}