mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
chore(console,core): remove custom JWT dev feature guard (#5775)
This commit is contained in:
parent
b575f57ac3
commit
61a2422601
3 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@ export const useSidebarMenuItems = (): {
|
|||
{
|
||||
Icon: JwtClaims,
|
||||
title: 'customize_jwt',
|
||||
isHidden: !(isCloud && isDevFeaturesEnabled),
|
||||
isHidden: !isCloud,
|
||||
},
|
||||
{
|
||||
Icon: Hook,
|
||||
|
|
|
@ -65,7 +65,7 @@ export const useConsoleRoutes = () => {
|
|||
profile,
|
||||
{ path: 'signing-keys', element: <SigningKeys /> },
|
||||
isCloud && tenantSettings,
|
||||
isCloud && isDevFeaturesEnabled && customizeJwt
|
||||
isCloud && customizeJwt
|
||||
),
|
||||
[tenantSettings]
|
||||
);
|
||||
|
|
|
@ -66,9 +66,9 @@ export const getExtraTokenClaimsForJwtCustomization = async (
|
|||
cloudConnection: CloudConnectionLibrary;
|
||||
}
|
||||
): Promise<UnknownObject | undefined> => {
|
||||
const { isDevFeaturesEnabled, isCloud } = EnvSet.values;
|
||||
const { isCloud } = EnvSet.values;
|
||||
// No cloud connection for OSS version, skip.
|
||||
if (!isDevFeaturesEnabled || !isCloud) {
|
||||
if (!isCloud) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue