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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;
}