Skip to content

Commit

Permalink
fix: Fix error in OTP confirm when createing user_ secret_id
Browse files Browse the repository at this point in the history
  • Loading branch information
lhhyung committed Oct 18, 2024
1 parent 75b29db commit 3dc5e86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def set_mfa_options(self, user_mfa: dict, credentials: dict):

elif mfa_state == "DISABLED":
otp_secret_key = self.get_cached_otp_secret_key(credentials)
user_secret_info = secret_manager.create_user_secret(otp_secret_key)
user_secret_info = secret_manager.create_user_secret({"otp_secret_key": otp_secret_key})
user_mfa["options"]["user_secret_id"] = user_secret_info.get("user_secret_id")

return user_mfa
Expand Down

0 comments on commit 3dc5e86

Please sign in to comment.