Implement Auth provide user info

This commit is contained in:
Takeshi Kimata
2024-05-19 11:14:04 +09:00
parent 0a783bddfd
commit 3d141cf05b
16 changed files with 151 additions and 7 deletions

View File

@@ -5,6 +5,18 @@ export type UserType = {
username: string;
role: number;
avatarPath: string;
} | null;
export type TokenProps = {
children?: React.ReactNode;
};
export type TokenType = {
token: {
access_token: string;
user: UserType;
};
setToken: () => {};
};
export type AuthMessages = {
@@ -23,4 +35,4 @@ export type AuthMessages = {
emailNotExist: string;
signupError: string;
signinError: string;
};
};