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>