verifyPasswordWithHttpInfo method
Future<Response>
verifyPasswordWithHttpInfo(
- String userId, {
- 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:
-
String userId (required): The ID of the user for whom to verify the password
-
VerifyPasswordRequest verifyPasswordRequest:
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,
);
}