-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
로그인 / 회원가입 #4
Comments
회원가입import { createUserWithEmailAndPassword } from 'firebase/auth';
const handlesSignUp = () => {
createUserWithEmailAndPassword(authService, id, pw)
.then((userData) => console.log(userData.user))
.catch((error) => {
const errorMessage = error.message;
console.log('회원가입 실패', errorMessage);
});
}; 로그인import { signInWithEmailAndPassword } from 'firebase/auth';
const handleLogin = () => {
signInWithEmailAndPassword(authService, adminInfo.id, adminInfo.pw)
.then(() => {
console.log('로그인 성공');
})
.catch((error) => {
console.log('로그인 실패', error.errorMessage);
});
}; userId 확인하기const getUID = () => {
return getAuth();
};
const { data: uid } = useQuery('uid', getUID, {
select: (data) => {
return data.currentUser.uid;
},
}); |
no-pla
added a commit
that referenced
this issue
Jan 9, 2023
firebase와 연동하여 회원가입 기능 구현했습니다. 유효성 검사까지 완료했습니다.
JH-anfseo
added a commit
that referenced
this issue
Jan 9, 2023
코드 정리가 따로 필요한 상태입니다. 추후에 수정될 수 있습니다....
arch-spatula
added a commit
that referenced
this issue
Jan 11, 2023
JH-anfseo
added a commit
that referenced
this issue
Jan 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: