🌉
Context persistence
Let's explore how we can pass query params to the URL before redirecting to the login page so that we can transport some state from the main app to the login page.
It's up to you to implement it however you want but here's a solution off the shelf for you to use

keycloakify-starter/valuesTransferredOverUrl.ts at main · codegouvfr/keycloakify-starter
GitHub
Declare the variables that we want to pass over, here foo and bar

keycloakify-starter/App.tsx at cb5844c62381efed7b303886cbe460c055a62c21 · codegouvfr/keycloakify-starter
GitHub
Add the value to the url before redirecting

keycloakify-starter/KcApp.tsx at cb5844c62381efed7b303886cbe460c055a62c21 · codegouvfr/keycloakify-starter
GitHub
Using the values in the login pages

Cloud IAM - Keycloak Identity and Access Management as a Service
Feeling overwhelmed? Check out our exclusive sponsor's Cloud IAM consulting services to simplify your experience.