enable 2fa flow

This commit is contained in:
Milo Schwartz
2024-12-23 23:59:15 -05:00
parent b1afba191e
commit 9e50a580a5
33 changed files with 605 additions and 2084 deletions

View File

@@ -30,8 +30,8 @@ export default async function OrgLayout(props: {
const getOrgUser = cache(() =>
internal.get<AxiosResponse<GetOrgUserResponse>>(
`/org/${orgId}/user/${user.userId}`,
cookie,
),
cookie
)
);
const orgUser = await getOrgUser();
} catch {
@@ -40,10 +40,7 @@ export default async function OrgLayout(props: {
try {
const getOrg = cache(() =>
internal.get<AxiosResponse<GetOrgResponse>>(
`/org/${orgId}`,
cookie,
),
internal.get<AxiosResponse<GetOrgResponse>>(`/org/${orgId}`, cookie)
);
await getOrg();
} catch {