fix(gateway/auth): Implement proper auth/init flow with automatic background userId generation

- Fix getUserId() to use placeholder that triggers auth/init if the auth/init endpoint is down for whatever reason
- Add silent auth/init attempt in AI services
- Improve hosted mode error handling
- Remove fake userId/email generation from init.js
This commit is contained in:
Eyal Toledano
2025-05-31 19:47:18 -04:00
parent 769275b3bc
commit 9b87dd23de
11 changed files with 4699 additions and 4558 deletions

View File

@@ -25,6 +25,7 @@ jest.unstable_mockModule(
getAzureBaseURL: jest.fn(),
getVertexProjectId: jest.fn(),
getVertexLocation: jest.fn(),
writeConfig: jest.fn(() => true),
MODEL_MAP: {
openai: [
{