Hey team, I believe there is a bug in the latest p...
# support-questions-legacy
s
Hey team, I believe there is a bug in the latest python sdk version. The
create_reset_password_link
sdk function calls
get_password_reset_link
with the wrong order of arguments: https://github.com/supertokens/supertokens-python/blob/v0.16.8/supertokens_python/recipe/emailpassword/asyncio/__init__.py#L148-L149 https://github.com/supertokens/supertokens-python/blob/v0.16.8/supertokens_python/recipe/emailpassword/utils.py#L303
create_reset_password_link
gives the recipe_id as the second argument to
get_password_reset_link
and the token as the third argument, but
get_reset_password_link
defines the token as the second parameter to the function and the recipe id as the third parameter. As a result when we call the
send_reset_password_email
the link in the email looks like
/reset-password?token=emailpassword&rid=<actual token>
r
hey @SuperEric you are right. Its strange that this didn't get caught in our testing.. very strange. I'll investigate and fix it
s
thanks!
@rp_st Do you have a timeline on when it might be fixed? We could call the create_link function and send_email function separately as a short term fix rather than wait for a new release
r
Shoulkd be released sometime today
We have released a new version of the SDK -
0.17.0
. Please try that 🙂