Skip to content

Commit

Permalink
return otp uri on register
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Aug 5, 2024
1 parent 9fd5287 commit d26f5f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion agixtsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def register_user(self, email, first_name, last_name):
if "otp_uri" in response:
mfa_token = str(response["otp_uri"]).split("secret=")[1].split("&")[0]
totp = pyotp.TOTP(mfa_token)
return self.login(email=email, otp=totp.now())
self.login(email=email, otp=totp.now())
return response["otp_uri"]
else:
return response

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="agixtsdk",
version="0.0.59",
version="0.0.60",
description="The AGiXT SDK for Python.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit d26f5f5

Please sign in to comment.