diff --git a/apps/frontend/src/app/api-client/apiModules/users.ts b/apps/frontend/src/app/api-client/apiModules/users.ts index 77a8c9f..c760551 100644 --- a/apps/frontend/src/app/api-client/apiModules/users.ts +++ b/apps/frontend/src/app/api-client/apiModules/users.ts @@ -82,6 +82,8 @@ export const loginEmailAndPassword = async (data: any) => { return userData.data } +// export const passwordReset = (email) => auth.sendPasswordResetEmail(email) + export const signUpUser = async (data: any) => { const userData = await apiClientWithAuth.post(apiEndpoints.users + "/signup", data) // console.log(userData) diff --git a/apps/frontend/src/app/views/login/Login.tsx b/apps/frontend/src/app/views/login/Login.tsx index e08ef48..66cc363 100644 --- a/apps/frontend/src/app/views/login/Login.tsx +++ b/apps/frontend/src/app/views/login/Login.tsx @@ -1,6 +1,6 @@ /* eslint-disable react-hooks/exhaustive-deps */ /* eslint-disable @typescript-eslint/no-explicit-any */ -import React, { ChangeEvent, useEffect } from 'react'; +import React, { ChangeEvent, useEffect, useContext } from 'react'; import { UserContext } from '../../app'; import { useGoogleLogin } from '@react-oauth/google'; import axios from 'axios'; @@ -90,7 +90,7 @@ export const Login = () => { const loginEP = async () => { const response = await loginEmailAndPassword({email, password}) console.log(response) - + } // const signUp = async () => { // const response = await signUpUser({email, password, firstName, lastName, username})