rntripathi01
06/20/2021, 10:19 AMrntripathi01
06/20/2021, 10:20 AMrntripathi01
06/20/2021, 10:20 AMrp
06/20/2021, 10:20 AMrntripathi01
06/20/2021, 10:20 AMrp
06/20/2021, 10:21 AMrntripathi01
06/20/2021, 10:21 AMrntripathi01
06/20/2021, 10:47 AMrp
06/20/2021, 10:48 AMrntripathi01
06/20/2021, 10:48 AMrntripathi01
06/20/2021, 10:48 AMNikolai
06/22/2021, 1:21 PMrp
06/22/2021, 1:27 PMrp
06/22/2021, 1:27 PMrp
06/22/2021, 1:30 PMrp
06/22/2021, 1:32 PMfastapi-2.x
branch has APIs that are to be used by the auth widgets on the frontend. This was to be merged into branch 2.0 from our end, but we didn't do that cause we decided to write a supertokens-python repo instead.
You should try using the code from that with the latest version of the core and frontend SDK.rp
06/22/2021, 1:32 PMNikolai
06/22/2021, 1:59 PMfastapi-2.x
as we fixed a minor bug. Our frontend/backend path is /auth/signup /auth/..., thus I was expecting that this handler gets called.
Nevertheless, I got it working by specifying handle_post_sign_up
like this EmailPasswordRecipe.init(config={"sign_up_feature": {"handle_post_sign_up": handle_post_sign_up}})
which calls the method async def handle_post_sign_up(a, b):
. Is this intended like this?
Regarding versions: we're using supertokens-core 3.4.1
and supertokens-auth-react 0.14
rp
06/22/2021, 2:11 PMrp
06/22/2021, 2:11 PMNikolai
06/22/2021, 2:34 PMrp
06/22/2021, 2:48 PMrp
06/22/2021, 2:50 PMawait recipe.config.create_and_send_custom_email(user, email_verify_link)
is here: https://github.com/supertokens/supertokens-fastapi/blob/fastapi-2.x/supertokens_fastapi/emailverification/utils.py#L31Nikolai
06/22/2021, 2:53 PMrp
06/22/2021, 2:54 PMrp
06/22/2021, 2:54 PMuser
06/22/2021, 3:55 PMrp
06/22/2021, 4:37 PMuser
06/22/2021, 4:38 PMrp
06/22/2021, 4:38 PM