mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add authentication banner
This commit is contained in:
@@ -13,12 +13,12 @@ export const ConfigurationContext = createContext<ConfigurationContextType>({
|
||||
|
||||
|
||||
export type AuthContextType = {
|
||||
isAuthenticated: boolean
|
||||
setIsAuthenticated: React.Dispatch<React.SetStateAction<boolean>>
|
||||
isAuthenticated?: boolean
|
||||
setIsAuthenticated: React.Dispatch<React.SetStateAction<boolean | undefined>>
|
||||
}
|
||||
|
||||
export const AuthenticatedContext = createContext<AuthContextType>({
|
||||
isAuthenticated: false,
|
||||
isAuthenticated: undefined,
|
||||
setIsAuthenticated: () => {
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user