feat!: reset password with email

This commit is contained in:
Elias Schneider
2023-02-09 18:17:53 +01:00
parent 8ab359b71d
commit 5d1a7f0310
20 changed files with 459 additions and 156 deletions

View File

@@ -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(),
};
};