Closed benevbright closed 9 months ago
Assuming the session being alive or not is refering to the application session, I don't think that's a bug, but definetly not something our SDK controls as it relies on the auth0 session and not the application session.
If you believe it to be a bug (outside of the SDK), please reach out through the corresponding channels (being your account manager, or leaving feedback here: https://auth0.com/feedback).
as it relies on the auth0 session and not the application session.
@frederikprijck thanks for the response! btw, I was referring to the getSession()
result from auth0-nextjs library.
Checklist
Description
We're using
authorizationParams.organization=ORG_ID
to bypass organization prompt during login flow.login handler
But I observed weird behaviours
APP_URL/api/auth/login?organization=xxx
in new browser -> fine. starts with ID/PW prompt bypassing the org promptAPP_URL/api/auth/login
while app is running -> fine. redirected to login prompt (but it goes to the organization prompt as the param is not given)APP_URL/api/auth/login?organization=xxx
while app is running -> user gets silently logged in regardless of the session is alive or not, which would be a problemWe want to redirect user to the re-login prompt, not silently logging-in. The workaround is using
prompt: "login"
and now user gets redirected to the ID/PW prompt without problem. But I don't understand the case no.3 and wonder if it's a bug. Why user gets logged in silently?Reproduction
described above
Additional context
We're using
AUTH0_SESSION_AUTO_SAVE=false
.nextjs-auth0 version
3.5.0
Next.js version
13.1
Node.js version
18