itd-api / AuthState
Interface: AuthState
Defined in: types/models.ts:190
Состояние авторизации — ответ GET /api/profile.
Endpoint доступен без сессии: в этом случае authenticated равен false, а user — null.
Properties
authenticated
ts
authenticated: boolean;Defined in: types/models.ts:192
Есть ли действующая сессия.
banned
ts
banned: boolean;Defined in: types/models.ts:194
Заблокирован ли текущий аккаунт.
user
ts
user: MyProfile | null;Defined in: types/models.ts:196
Текущий пользователь либо null без действующей сессии.