auth clean up
This commit is contained in:
@@ -20,6 +20,7 @@ type AuthUser = {
|
||||
|
||||
type AuthContextValue = {
|
||||
user: AuthUser;
|
||||
token: string | null;
|
||||
loading: boolean; // covers initial hydrate + active auth requests
|
||||
login: (params: { email: string; password: string }) => Promise<void>;
|
||||
register: (params: {
|
||||
@@ -171,6 +172,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
const value: AuthContextValue = {
|
||||
user,
|
||||
token,
|
||||
loading,
|
||||
login,
|
||||
register,
|
||||
|
||||
Reference in New Issue
Block a user