How to preventing auto-login after registration?

Yet another question regarding this topic but almost a year after this similar post is there any way to prevent auto-logging in after user registration?

There are many other posts here regarding this topic that have zero responses so it would be nice to know if someone has thought / worked on this.

Not all organizations wish to have the user logging in immediately after registration and while it sounds like a good custom experience there needs to be the flexibility to turn such a thing off. Different companies have different compliance constraints which need this type of functionality.

Hopefully someone can help regarding this. Thank you!

AFAIK, required actions like email verification are the only way to prevent the user from being automatically logged in after registration. You could create a custom required action that does not allow the user to be logged in until there has been some kind of manual verification.

@xgp Ok that is good to know. Thank you for responding.

Hi Bradley,

I believe that can be achievable by customizing Authentication flows. I am not sure thought if it can be done out of the box with the Keycloak default flows. You may need to write some extension

Alright that is good to know. Thank you.