prettier
This commit is contained in:
parent
96921e1845
commit
ac834f405e
5 changed files with 29 additions and 26 deletions
|
@ -5,13 +5,13 @@ import { AppContext } from 'pages/_app';
|
|||
import { useContext } from 'react';
|
||||
|
||||
export default function Generate() {
|
||||
const appContext = useContext(AppContext);
|
||||
const router = useRouter();
|
||||
return (
|
||||
<GeneratePage
|
||||
appContext={appContext}
|
||||
router={router}
|
||||
appName={APPS.ACCOUNTS}
|
||||
/>
|
||||
);
|
||||
const appContext = useContext(AppContext);
|
||||
const router = useRouter();
|
||||
return (
|
||||
<GeneratePage
|
||||
appContext={appContext}
|
||||
router={router}
|
||||
appName={APPS.ACCOUNTS}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -5,13 +5,13 @@ import { AppContext } from 'pages/_app';
|
|||
import { useContext } from 'react';
|
||||
|
||||
export default function Sigup() {
|
||||
const appContext = useContext(AppContext);
|
||||
const router = useRouter();
|
||||
return (
|
||||
<SignupPage
|
||||
appContext={appContext}
|
||||
router={router}
|
||||
appName={APPS.ACCOUNTS}
|
||||
/>
|
||||
);
|
||||
const appContext = useContext(AppContext);
|
||||
const router = useRouter();
|
||||
return (
|
||||
<SignupPage
|
||||
appContext={appContext}
|
||||
router={router}
|
||||
appName={APPS.ACCOUNTS}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -74,10 +74,11 @@ export default function UtilitySection({ closeSidebar }) {
|
|||
try {
|
||||
const accountsToken = await getAccountsToken();
|
||||
|
||||
window.location.href = `${getAccountsURL()}${ACCOUNTS_PAGES.ACCOUNT_HANDOFF
|
||||
}?package=${CLIENT_PACKAGE_NAMES.get(
|
||||
APPS.PHOTOS
|
||||
)}&token=${accountsToken}`;
|
||||
window.location.href = `${getAccountsURL()}${
|
||||
ACCOUNTS_PAGES.ACCOUNT_HANDOFF
|
||||
}?package=${CLIENT_PACKAGE_NAMES.get(
|
||||
APPS.PHOTOS
|
||||
)}&token=${accountsToken}`;
|
||||
} catch (e) {
|
||||
logError(e, 'failed to redirect to accounts page');
|
||||
}
|
||||
|
|
|
@ -166,8 +166,9 @@ export default function Credentials({
|
|||
isTwoFactorPasskeysEnabled: true,
|
||||
});
|
||||
InMemoryStore.set(MS_KEYS.REDIRECT_URL, PAGES.ROOT);
|
||||
window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${window.location.origin
|
||||
}/passkeys/finish`;
|
||||
window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${
|
||||
window.location.origin
|
||||
}/passkeys/finish`;
|
||||
return;
|
||||
} else if (twoFactorSessionID) {
|
||||
const sessionKeyAttributes =
|
||||
|
|
|
@ -81,8 +81,9 @@ export default function VerifyPage({ appContext, router, appName }: PageProps) {
|
|||
isTwoFactorPasskeysEnabled: true,
|
||||
});
|
||||
setIsFirstLogin(true);
|
||||
window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${window.location.origin
|
||||
}/passkeys/finish`;
|
||||
window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${
|
||||
window.location.origin
|
||||
}/passkeys/finish`;
|
||||
router.push(PAGES.CREDENTIALS);
|
||||
} else if (twoFactorSessionID) {
|
||||
setData(LS_KEYS.USER, {
|
||||
|
|
Loading…
Add table
Reference in a new issue