Remove "Revoke Refresh Token" when not revoke on (#2234)
This commit is contained in:
parent
d85fc18a63
commit
883e59a5a3
1 changed files with 35 additions and 27 deletions
|
@ -75,6 +75,12 @@ export const RealmSettingsTokensTab = ({
|
|||
defaultValue: 36000,
|
||||
});
|
||||
|
||||
const revokeRefreshToken = useWatch({
|
||||
control,
|
||||
name: "revokeRefreshToken",
|
||||
defaultValue: false,
|
||||
});
|
||||
|
||||
return (
|
||||
<PageSection variant="light">
|
||||
<FormPanel
|
||||
|
@ -167,6 +173,7 @@ export const RealmSettingsTokensTab = ({
|
|||
)}
|
||||
/>
|
||||
</FormGroup>
|
||||
{revokeRefreshToken && (
|
||||
<FormGroup
|
||||
label={t("refreshTokenMaxReuse")}
|
||||
labelIcon={
|
||||
|
@ -195,6 +202,7 @@ export const RealmSettingsTokensTab = ({
|
|||
)}
|
||||
/>
|
||||
</FormGroup>
|
||||
)}
|
||||
</FormAccess>
|
||||
</FormPanel>
|
||||
<FormPanel
|
||||
|
|
Loading…
Reference in a new issue