feat!: reset password with email
This commit is contained in:
@@ -4,14 +4,14 @@ import { ConfigHook } from "../types/config.type";
|
||||
|
||||
export const ConfigContext = createContext<ConfigHook>({
|
||||
configVariables: [],
|
||||
refresh: () => {},
|
||||
refresh: async () => {},
|
||||
});
|
||||
|
||||
const useConfig = () => {
|
||||
const configContext = useContext(ConfigContext);
|
||||
return {
|
||||
get: (key: string) => configService.get(key, configContext.configVariables),
|
||||
refresh: () => configContext.refresh(),
|
||||
refresh: async () => configContext.refresh(),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user