Reset password deeplink not working consistently #33633
Unanswered
rochajulian
asked this question in
Questions
Replies: 1 comment
-
@rochajulian Same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I am on Expo and I am trying to implement reset password functionality to my app.
The flow goes as follows:
User requests password reset link
User gets email and clicks on the link
Link has a deeplink redirect to my app's reset password screen
If link is valid, user gets authenticated using the access and refresh token given by the url. Then they are able to update their password and get redirected to the app's "home" screen after doing so
If link is invalid, a toast message is shown to the user and they are immediately redirected back to the forgot password screen
My problem is as follows:
For whatever reason, when a user clicks the link in the email, my code work every other time... I have console logs set up and on the times that my code doesn't work as expected, I see that url is null which doesn't make sense because I do get taken to the reset password screen. I've tried to catch a pattern, I notice that the first time I click the link, I get deeplinked to my app as expected but the url console logs as null so my code doesn't work as expected. However, if I go back to the email and click the link again, I now see the url not be null BUT the link is now expired/invalid and that's not helpful.
What I'm expecting:
I want the deeplink to work everytime and not console log as null every other time...
I will provide my code in the following message.
AuthContext.tsx
ResetPassword.tsx
Beta Was this translation helpful? Give feedback.
All reactions