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:
parent
26e6d8d41b
commit
a4bb07e9cf
323 changed files with 2464 additions and 3348 deletions
30
src/types/auth/index.ts
Normal file
30
src/types/auth/index.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue