__app.tsx > _document 순서로 진행?하는 것 같다.
오늘 한 것
기초 셋업
firebase비밀번호 찾기 작업중
import React, { useState } from "react";
import { getAuth, sendPasswordResetEmail } from "firebase/auth";
import { authService, dbService } from "../shared/firebase";
import { doc, getDoc, updateDoc, DocumentData } from 'firebase/firestore';
const FindPassword = () => {
const auth = getAuth();
const [formData, setFormData] = useState<DocumentData>({
displayName: displayName,
email: email,
uid: uid,
});
const EditPassword = () => {
sendPasswordResetEmail(user, credential)
.then(() => {
// User re-authenticated.
})
.catch((error) => {
// An error ocurred
// ...
});
};
return (
<>
<h4>이메일 찾기</h4>
<input />
<input />
<input />
<input />
<button
style={{ marginTop: 30 }}
onClick={() => {
EditPassword;
}}
>
비밀번호 찾기
</button>
<button>취소</button>
</>
);
};
export default FindPassword;
'[내일배움캠프] > TIL' 카테고리의 다른 글
| 23.02.10) 최종 프로젝트 작업을 진행한 72일차 (0) | 2023.02.10 |
|---|---|
| 23.02.09) 최종 프로젝트 작업을 진행한 71일차 (0) | 2023.02.10 |
| 23.02.07) 최종 프로젝트를 진행한 69일차 (0) | 2023.02.07 |
| 23.02.06) 최종 프로젝트를 시작한 68일차 (0) | 2023.02.06 |
| 23.02.03) Next js 기초를 복습 및 후발대 강의를 배운 67일차 (0) | 2023.02.06 |