Posting a form and registering at the same time #3353
Unanswered
ThanosDodd
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Salutations!
I am developing an app where the user needs to fill out a form in order to sign in - the form data will be saved in the user collection using
mongodb
. My submit handler successfully signs the user in but the page refreshes the filled out form.In my current solution I'm saving the form data in
sessionStorage
before sending it to the api.The cleanest solution would be to pass the form data in the
signIn
call and use theevent
option but it seems I can't add whatever in thesignIn
params.If it would be possible not to refresh the page where login occurs that would also work well.
I appreciate your time as this is a new framework for me.
Beta Was this translation helpful? Give feedback.
All reactions