Cleanup after ourselves
This commit is contained in:
@@ -64,6 +64,7 @@ const saveQueryCredentialsAndNavigateTo = async (
|
||||
const inflightPasskeySessionID = nullToUndefined(
|
||||
sessionStorage.getItem("inflightPasskeySessionID"),
|
||||
);
|
||||
|
||||
if (
|
||||
!inflightPasskeySessionID ||
|
||||
passkeySessionID != inflightPasskeySessionID
|
||||
|
||||
@@ -256,6 +256,8 @@ export const saveCredentialsAndNavigateTo = async (
|
||||
// goes through the passkey flow in the browser itself (when they are using
|
||||
// the web app).
|
||||
|
||||
sessionStorage.removeItem("inflightPasskeySessionID");
|
||||
|
||||
const { id, encryptedToken, keyAttributes } = response;
|
||||
|
||||
await setLSUser({ ...getData("user"), encryptedToken, id });
|
||||
|
||||
Reference in New Issue
Block a user