-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable PIN registration with query param #2711
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this PR are mainly reverting #2687
}; | ||
} else { | ||
const identity = savePasskeyResult; | ||
// TODO: Return something meaningful if getting the passkey identity fails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only new line that was not just reverted. Because the view can return undefined
.
This is in the current code as well. The way this error was handled before was to never resolve the promise and show a toast error.
export const savePasskeyOrPin = async (): Promise< | ||
IIWebAuthnIdentity | undefined | ||
> => { | ||
export const savePasskeyOrPin = async ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is reverted to the old logic if pinAllowed
is true
and skip to render the page if not enabled.
@@ -123,32 +117,11 @@ test.skip("Should not prompt for PIN after deleting temp key", async () => { | |||
}, APPLE_USER_AGENT); | |||
}, 300_000); | |||
|
|||
test.skip("Log into client application using PIN registration flow", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't be enabled in the foreseeable future.
@sea-snake please review |
* Reintroduce PIN registration with query param * Enable PIN e2e tests * Fix tests * Use variable for query param in e2e test * Fix e2e test * Remove console.log
Motivation
In the PR where we deprecated registering with PIN we disabled the e2e tests to login (and register) with PIN.
However, current PIN users can still login with with the PIN and will continue to do so for a while.
Therefore, to keep the e2e coverage we had before, we want to reintroduce the e2e tests that login with the PIN. For that, we also need to reintroduce registering with PIN. We use a query param
enablePin
to enable registering with a PIN.Changes
Tests
🟢 Some screens were added
🟡 Some screens were changed