continue to signin or check after u2f setup

This commit is contained in:
peintnermax
2024-09-19 15:48:11 +02:00
parent ecc4d690fd
commit dca1745435
3 changed files with 29 additions and 16 deletions

View File

@@ -10,7 +10,7 @@ export default async function Page({
}: {
searchParams: Record<string | number | symbol, string | undefined>;
}) {
const { loginName, organization, authRequestId } = searchParams;
const { loginName, organization, authRequestId, checkAfter } = searchParams;
const sessionFactors = await loadMostRecentSession({
loginName,
@@ -49,9 +49,11 @@ export default async function Page({
{sessionFactors?.id && (
<RegisterU2F
loginName={loginName}
sessionId={sessionFactors.id}
organization={organization}
authRequestId={authRequestId}
checkAfter={checkAfter === "true"}
/>
)}
</div>