Skip to content

Commit 466cf80

Browse files
committed
chore: remove unnecessary warning on inactive API authentication
1 parent cef63a3 commit 466cf80

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/config/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,7 @@ export const getAPIAuthMethods = (): Authentication[] => {
126126
_apiAuthentication = _userSettings.apiAuthentication;
127127
}
128128

129-
const enabledAuthMethods = _apiAuthentication.filter((auth) => auth.enabled);
130-
131-
if (enabledAuthMethods.length === 0) {
132-
console.log('Warning: No authentication method enabled for API endpoints.');
133-
}
134-
135-
return enabledAuthMethods;
129+
return _apiAuthentication.filter((auth) => auth.enabled);
136130
};
137131

138132
// Log configuration to console

0 commit comments

Comments
 (0)