mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 13:23:13 +00:00
loginname, password org context
This commit is contained in:
@@ -9,11 +9,15 @@ export default async function Page({
|
||||
}: {
|
||||
searchParams: Record<string | number | symbol, string | undefined>;
|
||||
}) {
|
||||
const { loginName, promptPasswordless, authRequestId, alt } = searchParams;
|
||||
const sessionFactors = await loadSession(loginName);
|
||||
const { loginName, organization, promptPasswordless, authRequestId, alt } =
|
||||
searchParams;
|
||||
const sessionFactors = await loadSession(loginName, organization);
|
||||
|
||||
async function loadSession(loginName?: string) {
|
||||
const recent = await getMostRecentCookieWithLoginname(loginName);
|
||||
async function loadSession(loginName?: string, organization?: string) {
|
||||
const recent = await getMostRecentCookieWithLoginname(
|
||||
loginName,
|
||||
organization
|
||||
);
|
||||
|
||||
return getSession(server, recent.id, recent.token).then((response) => {
|
||||
if (response?.session) {
|
||||
|
||||
Reference in New Issue
Block a user