fbele
CCConvex Community
•Created by sshader on 10/3/2024 in #support-community
Auth token is not a valid JWT, cannot refetch the token on upgrade from Convex 1.15 -> 1.16.3
Ok, thank you for the update! 🙏
At least the issue is known and is going to be fixed in the future
14 replies
CCConvex Community
•Created by sshader on 10/3/2024 in #support-community
Auth token is not a valid JWT, cannot refetch the token on upgrade from Convex 1.15 -> 1.16.3
@sshader perhaps any update on this issue?
14 replies
CCConvex Community
•Created by sshader on 10/3/2024 in #support-community
Auth token is not a valid JWT, cannot refetch the token on upgrade from Convex 1.15 -> 1.16.3
14 replies
CCConvex Community
•Created by sshader on 10/3/2024 in #support-community
Auth token is not a valid JWT, cannot refetch the token on upgrade from Convex 1.15 -> 1.16.3
14 replies
CCConvex Community
•Created by sshader on 10/3/2024 in #support-community
Auth token is not a valid JWT, cannot refetch the token on upgrade from Convex 1.15 -> 1.16.3
@sshader I can confirm the same issue after upgrading Convex from
1.16.0
to 1.16.4
. I also updated @convex-dev/auth
from 0.0.67
to 0.0.71
.
My React Native version is 0.74.5
and I am still getting the same error:
Auth token is not a valid JWT, cannot refetch the token
The authentication as such is seemingly working fine, it is just throwing this error and I cannot debug it, where exactly is happening.
(cc: @adam)14 replies
CCConvex Community
•Created by fbele on 9/4/2024 in #support-community
afterUserCreatedOrUpdated() not being triggered after user creation or update
Ok, I understand.
Perhaps just one last question, as this topic is closed for me - is there then any particular use or reason to use the
identity
, when there is already userId
available?7 replies
CCConvex Community
•Created by fbele on 9/4/2024 in #support-community
afterUserCreatedOrUpdated() not being triggered after user creation or update
7 replies
CCConvex Community
•Created by fbele on 9/2/2024 in #support-community
How to update the 'phoneVerified' field in authAccounts table after a successful phone verification?
This solution seems to work as expected. Thank you.
However, and maybe it's just my wrong thinking, I would have expected that the
phoneVerified: true
should be set in the account
segment and not in profile
segment. Two reasons, number one the information about verified phone is stored in the account
document, second a profile
(user) can have multiple accounts/providers and more of those can use phone verification.
Or is all this part of the bug that needs to get resolved? 🙂7 replies
CCConvex Community
•Created by fbele on 9/4/2024 in #support-community
afterUserCreatedOrUpdated() not being triggered after user creation or update
It is exactly like that as you described. The users get created as expected, but none of the lines in the method above get executed. I don't get any console logs and also
tokenIdentifier
doesn't get populated7 replies
CCConvex Community
•Created by fbele on 9/3/2024 in #support-community
Is there a way to use Password + Phone providers for authentication?
I have figured it out! Thank you anyways! 🙂
3 replies
CCConvex Community
•Created by fbele on 9/3/2024 in #support-community
Is there a way to use Password + Phone providers for authentication?
@sshader @Michal Srb perhaps you can kindly help me with that? Would I need a CustomCredentials provider to achieve this flow?
To recap my flow:
1. A user enters his phone number which gets verified via OTP.
2. After that a user defines his password that is going to be coupled with his phone number (authAccounts.secret)
3. From now on the user can use his phone number + password to sign in into the app.
Since Password provider currently cannot be used together with Phone provider (new Feature perhaps?), then I was thinking maybe I need to use CustomCredentials, but I have no idea how to create a signIn if the user provides the password. Can you please help me with that?
Thank you.
3 replies
CCConvex Community
•Created by fbele on 9/2/2024 in #support-community
How to update the 'phoneVerified' field in authAccounts table after a successful phone verification?
Thanks for your reply. I thought the same about
phoneVerified: true
but since you mention about the types on createAccount
I'm guessing that you already noticed that this is currently not possible to do.
Also a point to mention is that after using Convex's integrated Phone provider I have noticed that phoneVerified
is set to the same value as Account Id, which is a string with phone number, so phoneVerified
is not of boolean value, but string.7 replies
CCConvex Community
•Created by Patolord on 8/7/2024 in #support-community
How to config password requirements in Convex Auth?
You can find this here: https://labs.convex.dev/auth/config/passwords#customize-email-and-password-validation
2 replies
CCConvex Community
•Created by fbele on 9/2/2024 in #support-community
How to update the 'phoneVerified' field in authAccounts table after a successful phone verification?
Using Phone provider the 'phoneVerified' successfully gets updated. I haven't figured it out how to do it using a custom provider, e.g. ConvexCredentials.
7 replies
CCConvex Community
•Created by fbele on 9/2/2024 in #support-community
How to update the 'phoneVerified' field in authAccounts table after a successful phone verification?
Can someone help me with that?
I am fairly new to Convex so any help is much appreciated.
7 replies
CCConvex Community
•Created by fbele on 8/27/2024 in #support-community
Phone provider with Twilio example is returning an error when executing createAccount() method
Thank you for the quick reply! Yes, that ws the issue, I had no schemas defined, ergo also no Auth tables available. It worked after that. Perfect! Thanks 🙏
3 replies