Skip to content

Commit 7bbf48c

Browse files
committed
Updates
1 parent 939e79c commit 7bbf48c

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

agixtsdk/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,27 @@ def login_magic_link(self, email: str, otp: str):
154154
return token
155155
return response
156156

157+
def request_login_link(self, email: str):
158+
"""
159+
Request a login link to be sent to the user's email.
160+
161+
This is useful for users who don't have a password set (MFA-only users)
162+
or as a "forgot password" alternative for passwordless login.
163+
164+
Args:
165+
email: User's email address
166+
167+
Returns:
168+
Response dict with status message
169+
"""
170+
response = requests.post(
171+
f"{self.base_uri}/v1/login/request-link",
172+
json={"email": email},
173+
)
174+
if self.verbose:
175+
parse_response(response)
176+
return response.json()
177+
157178
def register_user(
158179
self,
159180
email: str,

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.81",
11+
version="0.0.82",
1212
description="The AGiXT SDK for Python.",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)