Fix typo and add tests for auth validation. (#3491)

This commit is contained in:
Tommaso Sciortino
2025-07-07 15:52:04 -07:00
committed by GitHub
parent 48c2aa296a
commit 426b6905da
2 changed files with 79 additions and 1 deletions

View File

@@ -9,7 +9,10 @@ import { loadEnvironment } from './settings.js';
export const validateAuthMethod = (authMethod: string): string | null => {
loadEnvironment();
if (authMethod === AuthType.LOGIN_WITH_GOOGLE || AuthType.CLOUD_SHELL) {
if (
authMethod === AuthType.LOGIN_WITH_GOOGLE ||
authMethod === AuthType.CLOUD_SHELL
) {
return null;
}