authorizePassword static method
Implementation
static Future<AuthorizationResponse> authorizePassword(
{required PasswordAuthorizationRequest request}) async {
final response = await httpRetry(
() => http.post(
Uri.parse(request.configuration.tokenEndpoint),
body: request.toMap(),
),
);
if (response == null) throw UnsupportedError('The response was null.');
return AuthorizationResponse.fromJson(response);
}