feat: allow unauthenticated users to perform domain name lookups

This commit is contained in:
Maël Gangloff
2025-12-08 18:18:33 +01:00
parent eddb267275
commit 5476ee7acc
16 changed files with 214 additions and 110 deletions

24
assets/contexts/index.ts Normal file
View File

@@ -0,0 +1,24 @@
import type React from 'react'
import {createContext} from 'react'
import type {InstanceConfig} from "../utils/api"
export type ConfigurationContextType = {
configuration: InstanceConfig | undefined
}
export const ConfigurationContext = createContext<ConfigurationContextType>({
configuration: undefined,
})
export type AuthContextType = {
isAuthenticated: boolean
setIsAuthenticated: React.Dispatch<React.SetStateAction<boolean>>
}
export const AuthenticatedContext = createContext<AuthContextType>({
isAuthenticated: false,
setIsAuthenticated: () => {
},
})