Repository navigation
How to add custom query param in the login url #37228
Unanswered
oussemas-inspark
asked this question in
Q&A
Replies: 1 comment 2 replies
|
You cannot all const redirectUrl = new URL(keycloak.createLoginUrl(options))
redirectUrl.set("darkMode", "true")
location.assign(redirectUrl.toString()) |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
I need to add a custom query parameter (e.g., ?darkMode=true) to the Keycloak login URL when redirecting users for authentication using keycloak-js. However, I couldn't find a straightforward way to modify the login URL before redirection.
Discussion
No response
Motivation
No response
Details
No response
All reactions