Replies: 1 comment 4 replies
-
https://github.com/panva/node-oidc-provider/discussions/new?category=ideas
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Situation
At the moment if a user login, a session is created for the his
account.id
. If the account is deleted and lets say the user lands on the/auth
endpoint he will be redirected automatically to the consent page because a session already exists. But that can't be displayed successfully because we are presented with the following error:Solution
💡 Of course we will do our best to delete the sessions when an account is deleted - but shouldn't we handle this in the library?
I can see that we have the findAccount middleware, that does nothing if the account doesn't exist, why is that?
Also what would be the recommended approach to achieve the following: If as session exists but no account redirect to the login prompt?
Beta Was this translation helpful? Give feedback.
All reactions