diff --git a/src/pages/login/forms/FormReset.tsx b/src/pages/login/forms/FormReset.tsx index fbce0e09..89dc1093 100644 --- a/src/pages/login/forms/FormReset.tsx +++ b/src/pages/login/forms/FormReset.tsx @@ -24,7 +24,8 @@ export function FormSendReset() { export function FormReset() { const { token } = useParams<{ token: string }>(); - const client = useContext(AppContext); + const config = useApplicationState().config; + const client = config.createClient(); const history = useHistory(); return ( diff --git a/src/pages/login/forms/FormVerify.tsx b/src/pages/login/forms/FormVerify.tsx index 38154c26..2a46ff39 100644 --- a/src/pages/login/forms/FormVerify.tsx +++ b/src/pages/login/forms/FormVerify.tsx @@ -29,7 +29,8 @@ export function FormResend() { export function FormVerify() { const [error, setError] = useState(undefined); const { token } = useParams<{ token: string }>(); - const client = useContext(AppContext); + const config = useApplicationState().config; + const client = config.createClient(); const history = useHistory(); useEffect(() => {