Check user auth in api request

This commit is contained in:
Takeshi Kimata
2024-05-25 12:35:10 +09:00
parent 7a0bb63e7b
commit d6e7c98025
19 changed files with 106 additions and 50 deletions

View File

@@ -19,6 +19,7 @@ export type ProjectsMessages = {
editProject: string;
deleteProject: string;
id: string;
publicity: string;
name: string;
detail: string;
lastUpdate: string;

View File

@@ -22,6 +22,7 @@ export type TokenContextType = {
access_token: string;
user: UserType;
};
isSignedIn: () => Boolean;
setToken: (token: TokenType) => {};
storeTokenToLocalStorage: (token: TokenType) => {};
removeTokenFromLocalStorage: () => {};