verifyPasswordWithHttpInfo method

Future<Response> verifyPasswordWithHttpInfo(
  1. String userId, {
  2. VerifyPasswordRequest? verifyPasswordRequest,
})

Verify the password of a user

Check that the user's password matches the supplied input. Useful for custom auth flows and re-verification.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<http.Response> verifyPasswordWithHttpInfo(
  String userId, {
  VerifyPasswordRequest? verifyPasswordRequest,
}) async {
  // ignore: prefer_const_declarations
  final path =
      r'/users/{user_id}/verify_password'.replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody = verifyPasswordRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}