Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mnvr committed Feb 17, 2024
1 parent 96921e1 commit ac834f4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 26 deletions.
18 changes: 9 additions & 9 deletions apps/accounts/src/pages/generate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
);
}
18 changes: 9 additions & 9 deletions apps/accounts/src/pages/signup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
);
}
9 changes: 5 additions & 4 deletions apps/photos/src/components/Sidebar/UtilitySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
5 changes: 3 additions & 2 deletions packages/accounts/pages/credentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
5 changes: 3 additions & 2 deletions packages/accounts/pages/verify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit ac834f4

Please sign in to comment.