init
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
import type { User } from '../../lib/api';
|
||||
|
||||
export interface AuthContextValue {
|
||||
user: User | null;
|
||||
loading: boolean;
|
||||
setUser: (user: User | null) => void;
|
||||
signOut: () => Promise<void>;
|
||||
}
|
||||
|
||||
export const AuthContext = createContext<AuthContextValue | null>(null);
|
||||
Reference in New Issue
Block a user