You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we allow support for rendering theme while creating the authorization URL? Right now I have to manually set it as light/dark in the WorkOS dashboard. But I would love to have the capability to set the theme while constructing the authorization URL. Here's what I am proposing
const authorizationUrl = workos.userManagement.getAuthorizationUrl({
provider: 'authkit',
screenHint: 'sign-in',
redirectUri: `<REDIRECT_URL>`,
clientId: <WORKOS_CLIENT_ID>,
state: redirectUrl,
// Add new option called `theme`
theme: 'dark' // Possible values are `light` or `dark` or `system` or `undefined`
});
redirect(authorizationUrl);
This will allow me to keep my login page in sync with the user's theme choice on my own dashboard. If user has selected dark mode on my dashboard, I would like to be able to send them to a dark themed login page.
The text was updated successfully, but these errors were encountered:
Can we allow support for rendering theme while creating the authorization URL? Right now I have to manually set it as light/dark in the WorkOS dashboard. But I would love to have the capability to set the theme while constructing the authorization URL. Here's what I am proposing
This will allow me to keep my login page in sync with the user's theme choice on my own dashboard. If user has selected dark mode on my dashboard, I would like to be able to send them to a dark themed login page.
The text was updated successfully, but these errors were encountered: