0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(console,phrases): improve feature description for rotate refresh token (#6647)

This commit is contained in:
Charles Zhao 2024-09-30 19:50:20 +08:00 committed by GitHub
parent 26b9a38a4f
commit 76acfe332c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -56,7 +56,11 @@ function RefreshTokenSettings({ data: { type } }: Props) {
),
}}
>
{t('application_details.rotate_refresh_token_label')}
{t(
[ApplicationType.Native, ApplicationType.SPA].includes(type)
? 'application_details.rotate_refresh_token_label_for_public_clients'
: 'application_details.rotate_refresh_token_label'
)}
</Trans>
}
{...register('customClientMetadata.rotateRefreshToken')}

View file

@ -63,6 +63,8 @@ const application_details = {
rotate_refresh_token: 'Rotate refresh token',
rotate_refresh_token_label:
'When enabled, Logto will issue a new refresh token for token requests when 70% of the original time to live (TTL) has passed or certain conditions are met. <a>Learn more</a>',
rotate_refresh_token_label_for_public_clients:
'When enabled, Logto will issue a new refresh token for each token request. <a>Learn more</a>',
backchannel_logout: 'Backchannel Logout',
backchannel_logout_description:
'Configure the OpenID Connect backchannel logout endpoint and if session is required for this application.',