diff --git a/src/main/python/fusionauth/fusionauth_client.py b/src/main/python/fusionauth/fusionauth_client.py index 8a8ac66..19dee5b 100644 --- a/src/main/python/fusionauth/fusionauth_client.py +++ b/src/main/python/fusionauth/fusionauth_client.py @@ -3335,6 +3335,22 @@ def retrieve_two_factor_status(self, user_id, application_id, two_factor_trust_i .get() \ .go() + def retrieve_two_factor_status_using(self, request): + """ + Retrieve a user's two-factor status. + + This can be used to see if a user will need to complete a two-factor challenge to complete a login, + and optionally identify the state of the two-factor trust across various applications. This operation + provides more payload options than retrieveTwoFactorStatus. + + Attributes: + request: The request object that contains all the information used to check the status. + """ + return self.start().uri('/api/two-factor/status') \ + .body_handler(JSONBodyHandler(request)) \ + .post() \ + .go() + def retrieve_user(self, user_id): """ Retrieves the user for the given Id.