0
Fork 0
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:
Darcy Ye 2024-04-23 18:53:45 +08:00 committed by GitHub
parent b575f57ac3
commit 61a2422601
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -130,7 +130,7 @@ export const useSidebarMenuItems = (): {
{
Icon: JwtClaims,
title: 'customize_jwt',
isHidden: !(isCloud && isDevFeaturesEnabled),
isHidden: !isCloud,
},
{
Icon: Hook,

View file

@ -65,7 +65,7 @@ export const useConsoleRoutes = () => {
profile,
{ path: 'signing-keys', element: <SigningKeys /> },
isCloud && tenantSettings,
isCloud && isDevFeaturesEnabled && customizeJwt
isCloud && customizeJwt
),
[tenantSettings]
);

View file

@ -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;
}