fix(web):centralize session auth fetch

This commit is contained in:
Anish Sarkar 2026-06-24 03:55:40 +05:30
parent 951cb1a717
commit d2a8d088c7
6 changed files with 142 additions and 266 deletions

View file

@ -7,8 +7,8 @@ export const loginRequest = z.object({
});
export const loginResponse = z.object({
access_token: z.string(),
token_type: z.string(),
authenticated: z.boolean(),
access_expires_at: z.number(),
});
export const registerRequest = loginRequest.omit({ grant_type: true, username: true }).extend({