https://supertokens.com/ logo
c

CaptainPhoton

06/24/2022, 6:09 PM
How come the input.email is undefined when I'm signing in with an email?
this is the input arg for the
sendEmail
function
r

rp

06/24/2022, 6:10 PM
huh.. thats weird
c

CaptainPhoton

06/24/2022, 6:10 PM
yeah 😄
I'll try going into the login flow again
and yeah a passwordless user with this email exists
r

rp

06/24/2022, 6:11 PM
yea.. if it's still undefined, it may be a bug. You could open an issue about this
c

CaptainPhoton

06/24/2022, 6:11 PM
yeah will do!
r

rp

06/24/2022, 6:11 PM
thanks
c

CaptainPhoton

06/24/2022, 6:12 PM
Now it's defined. Probably a session timeout? I had left it at the code screen for some time while having a snack, then logged the input during the "resend email" request
I'll make sure to check for the email being undefined
r

rp

06/24/2022, 6:13 PM
hmm. That's really strange. It should not happen
c

CaptainPhoton

06/24/2022, 6:13 PM
yeah
r

rp

06/24/2022, 6:13 PM
so if you resend the code now, the email is defined?
c

CaptainPhoton

06/24/2022, 6:13 PM
I went into the login flow from the beginning
oh yeah, resending does not work
the email is only defined for the first email sending try
r

rp

06/24/2022, 6:14 PM
oh damn.. ok im seeing what's wrong
c

CaptainPhoton

06/24/2022, 6:14 PM
great 😄
r

rp

06/24/2022, 6:18 PM
found the bug! thanks.. Will release a new version tomorrow
for now, you can continue using the older way of sending the email - it should make no difference in terms of functionality.
c

CaptainPhoton

06/24/2022, 6:23 PM
eh, already committed 😄 it's fine, I'll just update
this is not live yet
r

rp

06/24/2022, 6:24 PM
it'll be released in a breaking change
so you will also have to update the frontend SDKs.
c

CaptainPhoton

06/24/2022, 6:24 PM
okay, that's fine
r

rp

06/24/2022, 6:24 PM
but well.. should not be too much effort either way
c

CaptainPhoton

06/24/2022, 6:25 PM
cool! thanks
the Twilio integration works perfectly! 👌
r

rp

06/24/2022, 6:26 PM
awesome :))
@CaptainPhoton this has been fixed in v10.0.0
you can upgrade to it now
c

CaptainPhoton

06/25/2022, 8:30 AM
Great, thanks!
r

rp

06/25/2022, 8:30 AM
i'll also release a patch fix for this for the previous non breaking change version sometime today
c

CaptainPhoton

06/25/2022, 8:30 AM
Okay, I’ll try to keep it updated to the latest version as far as I can
r

rp

06/25/2022, 8:31 AM
fair enough
c

CaptainPhoton

06/28/2022, 6:21 AM
@rp so, the breaking changes in v10 is about the "status" field of responses? No other changes needed?
r

rp

06/28/2022, 6:21 AM
yea pretty much.
c

CaptainPhoton

06/28/2022, 6:21 AM
ok cool!