I'm having trouble using email/password signup... ...
# help
w
I'm having trouble using email/password signup... Not getting any kind of feedback at all... https://pastebin.com/MFdyxfbm
n
Hello @WhatTheEffffMan! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
j
@WhatTheEffffMan You're setting up the signUp function inside a conditional. You also never seem to call the function
n
WhatTheEffffMan (2022-05-16)
w
it gets called on submit via handleSignUp
removing it from the conditional has the same result
if i intentionally screw up the passwords it sets the message accordingly
j
@WhatTheEffffMan is your pastebin a direct copy? You're not calling the
signUp
function anywhere in it?
The signUp function is being defined inside the form submit callback
w
oh
yes its a direct copy
j
So I guess (1) there's no reason to have the signUp function be defined in there. Just make the event handler an async callback (2) if you want to keep the signUp function it needs to be called inside the event handler and probably moved to the top level of the component.
w
j
Second one looks good. Working like you expect?
w
Nope, doing the same.
actually post error 500 is supabase down?
j
Yeah looks like it is
Well just the console
w
Now I'm getting post error 400
I dunno what that was, its working now
j
Nice