From 16d83dd2f1efc7069e121a95f30528479168eb2d Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Wed, 26 Jul 2023 11:13:15 +0800 Subject: [PATCH] refactor(console): allow editing refresh token ttl for non-m2m apps (#4232) * refactor(console): allow editing refresh token ttl for non-m2m apps * chore: add changeset --- .changeset/allow-editing-refresh-token-ttl.md | 5 +++++ .../pages/ApplicationDetails/components/AdvancedSettings.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/allow-editing-refresh-token-ttl.md diff --git a/.changeset/allow-editing-refresh-token-ttl.md b/.changeset/allow-editing-refresh-token-ttl.md new file mode 100644 index 000000000..fabbc94ad --- /dev/null +++ b/.changeset/allow-editing-refresh-token-ttl.md @@ -0,0 +1,5 @@ +--- +"@logto/console": patch +--- + +Allow editing refresh token TTL for non-M2M applications (include SPA type) \ No newline at end of file diff --git a/packages/console/src/pages/ApplicationDetails/components/AdvancedSettings.tsx b/packages/console/src/pages/ApplicationDetails/components/AdvancedSettings.tsx index ad162f40d..521fe1af8 100644 --- a/packages/console/src/pages/ApplicationDetails/components/AdvancedSettings.tsx +++ b/packages/console/src/pages/ApplicationDetails/components/AdvancedSettings.tsx @@ -121,7 +121,7 @@ function AdvancedSettings({ applicationType, oidcConfig }: Props) { /> )} - {[ApplicationType.Traditional, ApplicationType.Native].includes(applicationType) && ( + {applicationType !== ApplicationType.MachineToMachine && ( <>