I'm adding additional formFields to my front end (custom UI on flutter) -- how do I access them on m...
a
I'm adding additional formFields to my front end (custom UI on flutter) -- how do I access them on my python backend? This page (https://supertokens.com/docs/thirdpartyemailpassword/custom-ui/email-password-login) says: On the backend, the formFields array will be available to you for consumption. -- but where?
a
probably! lol, thanks
@mayank how does this interact with override_thirdpartyemailpassword_functions() as described here (https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/handling-signinup-success) ?
do I need to move all my custom signin/up logic to override_apis?
m
@andrewbyrley You will need to override the signin/up API to get the custom form fields. Where is your custom logic right now? In the function overrides? If so, then in the API override, you can read the custom form fields and set it in the user context, and read it from the user context in your existing function overrides. refer: https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/handling-signinup-success#api-override-vs-functions-override
a
sorry for the basic questions, but for some reason my API override isn't calling the function override. what am I missing?
here's my init
@mayank, in case you're able to assist
m
Hey, so after you wrote the API override, your regular signin/up stopped working?
a
yea, I'm able to read the formfields in the api override, but it seems I'm no longer calling the function overrides
m
The code looks correct. What is the output of the signup POST API call?
a
i've done nothing to those functions for hours, and it's working now. i swear i don't understand computers
nevertheless, thank you for the help!
m
happy to help!
9 Views