mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:42:59 +00:00
add comment about checking sessions
This commit is contained in:
@@ -53,6 +53,13 @@ export async function GET(request: NextRequest) {
|
|||||||
sessions = await loadSessions(ids);
|
sessions = await loadSessions(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO: before automatically redirecting to the callbackUrl, check if the session is still valid
|
||||||
|
* possible scenaio:
|
||||||
|
* mfa is required, session is not valid anymore (e.g. session expired, user logged out, etc.)
|
||||||
|
* to check for mfa for automatically selected session -> const response = await listAuthenticationMethodTypes(userId);
|
||||||
|
**/
|
||||||
|
|
||||||
if (authRequestId && sessionId) {
|
if (authRequestId && sessionId) {
|
||||||
console.log(
|
console.log(
|
||||||
`Login with session: ${sessionId} and authRequest: ${authRequestId}`
|
`Login with session: ${sessionId} and authRequest: ${authRequestId}`
|
||||||
|
|||||||
Reference in New Issue
Block a user