Skip to content

Commit

Permalink
chore: remove unused SCIM setting - assumeControlOfExisting
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Sep 5, 2024
1 parent 2daa0cd commit 0ce8e2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const ScimSettings = () => {
const saveScimSettings = async (enabled: boolean) => {
try {
setEnabled(enabled);
await saveSettings({ enabled, assumeControlOfExisting: false });
await saveSettings({ enabled });
if (enabled && !settings.hasToken) {
const token = await generateNewToken();
setNewToken(token);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ const ENDPOINT = 'api/admin/scim-settings';
export type ScimSettings = {
enabled: boolean;
hasToken: boolean;
assumeControlOfExisting: boolean;
};

const DEFAULT_DATA: ScimSettings = {
enabled: false,
hasToken: false,
assumeControlOfExisting: false,
};

export const useScimSettings = () => {
Expand Down

0 comments on commit 0ce8e2e

Please sign in to comment.