diff --git a/packages/console/src/pages/CustomizeJwtDetails/MainContent/SettingsSection/InstructionTab/index.tsx b/packages/console/src/pages/CustomizeJwtDetails/MainContent/SettingsSection/InstructionTab/index.tsx index 58455222e768..dc7bbd68f42b 100644 --- a/packages/console/src/pages/CustomizeJwtDetails/MainContent/SettingsSection/InstructionTab/index.tsx +++ b/packages/console/src/pages/CustomizeJwtDetails/MainContent/SettingsSection/InstructionTab/index.tsx @@ -5,7 +5,6 @@ import { useState } from 'react'; import { useFormContext } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; -import { isDevFeaturesEnabled } from '@/consts/env'; import { type JwtCustomizerForm } from '@/pages/CustomizeJwtDetails/type'; import { environmentVariablesCodeExample, @@ -79,7 +78,7 @@ function InstructionTab({ isActive }: Props) { /> )} - {isDevFeaturesEnabled && tokenType === LogtoJwtTokenKeyType.AccessToken && ( + {tokenType === LogtoJwtTokenKeyType.AccessToken && ( ( subjectTokens: { insertSubjectToken }, } = queries; - if (!EnvSet.values.isDevFeaturesEnabled) { - return; - } - router.post( '/subject-tokens', koaQuotaGuard({ key: 'subjectTokenEnabled', quota }), diff --git a/packages/core/src/routes/swagger/index.ts b/packages/core/src/routes/swagger/index.ts index 9973d7430c3a..f08a089d87f2 100644 --- a/packages/core/src/routes/swagger/index.ts +++ b/packages/core/src/routes/swagger/index.ts @@ -153,11 +153,7 @@ const identifiableEntityNames = Object.freeze([ /** Additional tags that cannot be inferred from the path. */ const additionalTags = Object.freeze( - condArray( - 'Organization applications', - EnvSet.values.isDevFeaturesEnabled && 'Subject tokens', - 'Organization users' - ) + condArray('Organization applications', 'Organization users') ); /** diff --git a/packages/integration-tests/src/tests/api/oidc/token-exchange.test.ts b/packages/integration-tests/src/tests/api/oidc/token-exchange.test.ts index a6ec845f421d..930729f88a27 100644 --- a/packages/integration-tests/src/tests/api/oidc/token-exchange.test.ts +++ b/packages/integration-tests/src/tests/api/oidc/token-exchange.test.ts @@ -22,7 +22,6 @@ import { createUserByAdmin } from '#src/helpers/index.js'; import { OrganizationApiTest } from '#src/helpers/organization.js'; import { enableAllPasswordSignInMethods } from '#src/helpers/sign-in-experience.js'; import { - devFeatureTest, getAccessTokenPayload, randomString, generateName, @@ -30,8 +29,6 @@ import { generateUsername, } from '#src/utils.js'; -const { describe, it } = devFeatureTest; - describe('Token Exchange', () => { const username = generateUsername(); const password = generatePassword(); diff --git a/packages/integration-tests/src/tests/api/security.test.ts b/packages/integration-tests/src/tests/api/security.test.ts index bc906d85e147..c84b7e87d8f4 100644 --- a/packages/integration-tests/src/tests/api/security.test.ts +++ b/packages/integration-tests/src/tests/api/security.test.ts @@ -1,8 +1,5 @@ import { createSubjectToken } from '#src/api/subject-token.js'; import { createUserByAdmin } from '#src/helpers/index.js'; -import { devFeatureTest } from '#src/utils.js'; - -const { describe, it } = devFeatureTest; describe('subject-tokens', () => { it('should create a subject token successfully', async () => {