https://supertokens.com/ logo
Title
a

AdiGutner

10/20/2022, 10:53 AM
Hello, is there a way to enter a number without a country code and avoid getting this error? Assuming I can define that the default country is US
n

nkshah2

10/20/2022, 10:58 AM
Hi @AdiGutner
Are you using the pre built UI?
a

AdiGutner

10/20/2022, 10:58 AM
Yes
r

rp

10/20/2022, 11:02 AM
You can define the default country in the config
n

nkshah2

10/20/2022, 11:02 AM
When you initialise the recipe you can do something like this
ThirdPartyPasswordless.init({
    signInUpFeature: {
        defaultCountry: "..."
    },
})
a

AdiGutner

10/20/2022, 11:02 AM
Actually I see it's already defined
Is there a way to avoid getting this error?
r

rp

10/20/2022, 11:22 AM
If the frontend has the default country code, then the user sjouke not face this error
a

AdiGutner

10/20/2022, 11:23 AM
Default country is defined but still getting this error
r

rp

10/20/2022, 11:24 AM
Hmmm. Well, is the phone number actually valid?
Like try your phone number
a

AdiGutner

10/20/2022, 11:25 AM
I do not have a US phone number But this happens with any valid phone number I took this number from here https://fakenumber.org/
r

rp

10/20/2022, 11:26 AM
I think those might not be actual numbers.
Or might be blacklisted
a

AdiGutner

10/20/2022, 11:27 AM
If I press continue again I can continue to the next screen
I want to skip this step
It happens with any US number
r

rp

10/20/2022, 11:27 AM
If you press continue once, it shows the error, and pressing it again works?
a

AdiGutner

10/20/2022, 11:28 AM
Yes after the country code selection appears if I press continue again it works
r

rp

10/20/2022, 11:29 AM
Hmm. Can you open an issue about this on our GitHub? We will have a look
a

AdiGutner

10/20/2022, 11:30 AM
Sure Any other details you need?
r

rp

10/20/2022, 11:32 AM
Yea. As much as you can. Enough for us to replicate it 🙂
a

AdiGutner

10/20/2022, 11:49 AM
r

rp

10/20/2022, 2:01 PM
Thank you! We will see it asap.
If you only want phone as an input, consider just putting the contact method as phone. And not email and phone
a

AdiGutner

10/20/2022, 2:13 PM
I want both phone and email
r

rp

10/20/2022, 2:14 PM
I see. Understood
I know what the issue is. We will fix it on Monday / Tuesday.
a

AdiGutner

10/20/2022, 2:17 PM
Awesome thank you
a

Adiboi

10/26/2022, 4:09 PM
@AdiGutner , seems like this is still an issue for you?
a

AdiGutner

10/26/2022, 4:11 PM
After updating to the latest SDK version I'm getting this error:
JSX element type 'ThirdPartyPasswordlessAuth' does not have any construct or call signatures.
r

rp

10/26/2022, 4:11 PM
@porcellus can you help here?
p

porcellus

10/26/2022, 4:13 PM
hi
the
ThirdPartyPasswordlessAuth
has been removed for some time
you should use
SessionAuth
instead
r

rp

10/26/2022, 4:15 PM
Also, @AdiGutner please checkout the Changelog in the auth-react repo for steps on migration of code.
Since it seems that you were using a much older version and there have been a few breaking changes since then
a

AdiGutner

10/26/2022, 4:21 PM
Ok thanks Seems like the issue is fixed Thank you for handling it quickly