Check user auth in api request
This commit is contained in:
@@ -19,6 +19,7 @@ export type ProjectsMessages = {
|
||||
editProject: string;
|
||||
deleteProject: string;
|
||||
id: string;
|
||||
publicity: string;
|
||||
name: string;
|
||||
detail: string;
|
||||
lastUpdate: string;
|
||||
|
||||
@@ -22,6 +22,7 @@ export type TokenContextType = {
|
||||
access_token: string;
|
||||
user: UserType;
|
||||
};
|
||||
isSignedIn: () => Boolean;
|
||||
setToken: (token: TokenType) => {};
|
||||
storeTokenToLocalStorage: (token: TokenType) => {};
|
||||
removeTokenFromLocalStorage: () => {};
|
||||
|
||||
Reference in New Issue
Block a user