Skip to content

Commit d26f5f5

Browse files
committed
return otp uri on register
1 parent 9fd5287 commit d26f5f5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

agixtsdk/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def register_user(self, email, first_name, last_name):
114114
if "otp_uri" in response:
115115
mfa_token = str(response["otp_uri"]).split("secret=")[1].split("&")[0]
116116
totp = pyotp.TOTP(mfa_token)
117-
return self.login(email=email, otp=totp.now())
117+
self.login(email=email, otp=totp.now())
118+
return response["otp_uri"]
118119
else:
119120
return response
120121

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="agixtsdk",
11-
version="0.0.59",
11+
version="0.0.60",
1212
description="The AGiXT SDK for Python.",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)