mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-06 22:12:12 +02:00
fix(web):centralize session auth fetch
This commit is contained in:
parent
951cb1a717
commit
d2a8d088c7
6 changed files with 142 additions and 266 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue