Implement Auth provide user info
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user