Files
salvato.newfreeplanet/src/model/session.ts
2021-08-31 18:09:59 +02:00

30 lines
546 B
TypeScript
Executable File

import { 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,
}