mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
chore: remove oidc UI flag (#8949)
This commit is contained in:
parent
dfcb196b20
commit
7ff6a9c5c8
@ -7,7 +7,6 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
|
||||
import type { IAuthOptions } from 'hooks/api/getters/useAuth/useAuthEndpoint';
|
||||
import { SSO_LOGIN_BUTTON } from 'utils/testIds';
|
||||
import useQueryParams from 'hooks/useQueryParams';
|
||||
import { useUiFlag } from 'hooks/useUiFlag';
|
||||
|
||||
interface IAuthOptionProps {
|
||||
options?: IAuthOptions[];
|
||||
@ -22,9 +21,8 @@ function addOrOverwriteRedirect(path: string, redirectValue: string): string {
|
||||
|
||||
const AuthOptions = ({ options }: IAuthOptionProps) => {
|
||||
const { classes: themeStyles } = useThemeStyles();
|
||||
const oidcRedirectEnabled = useUiFlag('oidcRedirect');
|
||||
const query = useQueryParams();
|
||||
const redirectPath = (oidcRedirectEnabled && query.get('redirect')) || '';
|
||||
const redirectPath = query.get('redirect') || '';
|
||||
|
||||
return (
|
||||
<>
|
||||
|
@ -94,7 +94,6 @@ export type UiFlags = {
|
||||
showUserDeviceCount?: boolean;
|
||||
flagOverviewRedesign?: boolean;
|
||||
licensedUsers?: boolean;
|
||||
oidcRedirect?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
Loading…
Reference in New Issue
Block a user