Skip to content

Commit 8e8e8bb

Browse files
committed
client generation/new method
1 parent baa0af5 commit 8e8e8bb

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

lib/fusionauth/fusionauth_client.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,6 +3340,22 @@ def retrieve_two_factor_status(user_id, application_id, two_factor_trust_id)
33403340
.go
33413341
end
33423342

3343+
#
3344+
# Retrieve a user's two-factor status.
3345+
#
3346+
# This can be used to see if a user will need to complete a two-factor challenge to complete a login,
3347+
# and optionally identify the state of the two-factor trust across various applications. This operation
3348+
# provides more payload options than retrieveTwoFactorStatus.
3349+
#
3350+
# @param request [OpenStruct, Hash] The request object that contains all the information used to check the status.
3351+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
3352+
def retrieve_two_factor_status_body(request)
3353+
start.uri('/api/two-factor/status')
3354+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
3355+
.post
3356+
.go
3357+
end
3358+
33433359
#
33443360
# Retrieves the user for the given Id.
33453361
#

0 commit comments

Comments
 (0)