mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 02:29:34 +00:00
login with idp
This commit is contained in:
@@ -125,6 +125,23 @@ export async function createSession(
|
||||
);
|
||||
}
|
||||
|
||||
export async function createSessionForUserIdAndIdpIntent(
|
||||
server: ZitadelServer,
|
||||
userId: string,
|
||||
idpIntent: {
|
||||
idpIntentId?: string | undefined;
|
||||
idpIntentToken?: string | undefined;
|
||||
}
|
||||
): Promise<CreateSessionResponse | undefined> {
|
||||
const sessionService = session.getSession(server);
|
||||
return sessionService.createSession(
|
||||
{
|
||||
checks: { user: { userId }, idpIntent },
|
||||
},
|
||||
{}
|
||||
);
|
||||
}
|
||||
|
||||
export async function setSession(
|
||||
server: ZitadelServer,
|
||||
sessionId: string,
|
||||
|
||||
Reference in New Issue
Block a user