fix(settings): Navigate to confirmation if we don't have the recoveryKey#18156
fix(settings): Navigate to confirmation if we don't have the recoveryKey#18156jonalmeida merged 1 commit intomainfrom
Conversation
| SensitiveData.Key.NewRecoveryKey | ||
| )?.recoveryKey; | ||
|
|
||
| if (!recoveryKey) { |
There was a problem hiding this comment.
I'm wondering if we should lift the check for sessionToken and uid out of the navigateNext function and above the check for recoveryKey - if that data is not in local storage then we might as well go directly to signin
There was a problem hiding this comment.
Oh, that's a good idea! It would cancel out the password-reset-with-recovery-key flow but that is probably okay if we don't have these bits needed to get started in the first place which they would reach eventually after all when it's too late.
EDIT: So I tested this out and it doesn't seem super useful - since we have already reached a verified and recovered state, I don't think we need to lift it there.
There was a problem hiding this comment.
This was a few weeks ago, so I'm no longer sure if this line previously used navigateNext or if I just had a general observation about the session token check in the navigateNext function and couldn't directly comment on the unmodified line.
The general thought was that if we reach this page without a sessionToken, we should immediately redirect to signin on render
There was a problem hiding this comment.
Yeah, that logic makes sense to me and it would have been nice if we could have early navigated without the gnarliness.
|
I'm facing a weird bug with this patch where the page refreshes to a blank one first, but a second refresh does what I want. I'm not sure if this is a bug with my local config or not. I thought it might have been because a duplication in our routes, but it seems like that is unrelated. |
|
I think you might be on the right track - while the route definitions in Using |
|
Following up on the blank page issue - changing the route to However moving the navigation into a |
Thank you! |
We can sometimes get into a point where the page is unloaded after a new recovery key is created. We want to gracefully handle this flow since the user is already verified. Fixes FXA-10869
vpomerleau
left a comment
There was a problem hiding this comment.
Thanks for the updates here! ![]()
|
I filed this bug where desktop needs to properly handle the URI correctly since we are fixing this bug now: https://bugzilla.mozilla.org/show_bug.cgi?id=1941390 |
Because
recovery key is created. We want to gracefully handle this flow since
the user is already verified.
This pull request
/reset_password_confirmedif we don't have the recovery key anymore in theSensitiveDataClient.Issue that this pull request solves
Closes: FXA-10869
Checklist
Put an
xin the boxes that applyScreenshots (Optional)
n/a
Other information (Optional)
Built on top of #18136. Will rebase when the prior PR lands.