1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-14 14:16:41 +07:00

removed redux completely

This commit is contained in:
Fedor Katurov 2022-01-09 19:03:01 +07:00
parent 26e6d8d41b
commit a4bb07e9cf
323 changed files with 2464 additions and 3348 deletions

30
src/types/auth/index.ts Normal file
View file

@ -0,0 +1,30 @@
import { IFile } from '~/types';
import { Role } from '~/constants/auth';
export interface IUser {
id: number;
username: string;
email: string;
role: Role;
photo?: IFile;
cover?: IFile;
name: string;
fullname: string;
description: string;
last_seen: string;
last_seen_messages: string;
last_seen_boris: string;
is_activated: boolean;
is_user: boolean;
}
export type OAuthProvider = 'vkontakte' | 'google';
export interface ISocialAccount {
provider: OAuthProvider;
id: string;
name: string;
photo: string;
}