Files
myprojplanet_vite/src/model/session.ts
Surya Paolo bc960d38a1 PASSAGGIO A VITE !
AGG. 1.1.23
2025-03-01 14:14:43 +01:00

30 lines
551 B
TypeScript
Executable File

import type { IUserState } from '@src/model/UserStore'
export interface SessionState {
redirectUri: string | null,
timestamp: number | null,
token: string | null,
user: IUserState | null,
}
export interface CsrfCookie {
message: string | null,
}
export interface AuthUser {
redirectUri?: string | null,
token?: string | null,
}
export interface LoginUser {
email: string,
password: string,
'device_name': string,
'remember_me': boolean,
}
export interface AuthResponse {
token: string | null,
user: IUserState | null,
}