(email: string, password: string)
| 55 | |
| 56 | // ✅ Sign In |
| 57 | export const signIn = async (email: string, password: string) => { |
| 58 | try { |
| 59 | return await signInWithEmailAndPassword(auth, email, password); |
| 60 | } catch (error) { |
| 61 | const errorCode = (error as { code: string }).code; |
| 62 | throw new Error(errorCode); |
| 63 | } |
| 64 | }; |
| 65 | |
| 66 | // ✅ Forgot Password |
| 67 | export const forgotPassword = async (email: string) => { |