feat: add explicit license selection and status visibility (#6751)

This commit is contained in:
jason
2025-08-23 05:01:01 +09:00
committed by GitHub
parent 5035ef1d19
commit 6789322d1b
13 changed files with 382 additions and 40 deletions
+12
View File
@@ -16,6 +16,18 @@ export const validateAuthMethod = (authMethod: string): string | null => {
return null;
}
if (authMethod === AuthType.LOGIN_WITH_GOOGLE_GCA) {
if (!process.env['GOOGLE_CLOUD_PROJECT']) {
return (
'[Error] GOOGLE_CLOUD_PROJECT is not set.\n' +
'Please set it using:\n' +
' export GOOGLE_CLOUD_PROJECT=<your-project-id>\n' +
'and try again.'
);
}
return null;
}
if (authMethod === AuthType.USE_GEMINI) {
if (!process.env['GEMINI_API_KEY']) {
return 'GEMINI_API_KEY environment variable not found. Add that to your environment and try again (no reload needed if using .env)!';