oidc-client-ts
oidc-client-ts copied to clipboard
How to directly enter the user registration page from frontend client with UserManager
The following allows frontend client to enter login page easily
userManager.signinRedirect({ prompt: 'login', state: {} });
Is there any way for user to sign up/register a new user directly?
You mean automatic login? Yes that should doable by calling userManager.signinRedirect
without user interaction...
@pamapa no, he means something simila to what keycloak-js provides. It has a register()
method and when you call it the library redirects user straight to sign UP page, bypassing sign in page. To be clear, those 2 pages are on different routes in keycloak, so it's easy to do. I suppose it's not something oidc-way or universal and that's why it's not available in this library...
Take a look at this: https://github.com/keycloak/keycloak/blob/main/js/libs/keycloak-js/src/keycloak.js#L846