Skip to content
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

Closed
Tracked by #1
arch-spatula opened this issue Jan 8, 2023 · 1 comment
Closed
Tracked by #1

로그인 / 회원가입 #4

arch-spatula opened this issue Jan 8, 2023 · 1 comment
Assignees

Comments

@arch-spatula
Copy link
Collaborator

No description provided.

@arch-spatula arch-spatula mentioned this issue Jan 8, 2023
18 tasks
@arch-spatula
Copy link
Collaborator Author

arch-spatula commented Jan 8, 2023

회원가입

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와 연동하여 회원가입 기능 구현했습니다. 유효성 검사까지 완료했습니다.
no-pla added a commit that referenced this issue Jan 9, 2023
useUID 커스텀 훅 생성
no-pla added a commit that referenced this issue Jan 9, 2023
no-pla added a commit that referenced this issue Jan 9, 2023
JH-anfseo added a commit that referenced this issue Jan 9, 2023
코드 정리가 따로 필요한 상태입니다. 추후에 수정될 수 있습니다....
no-pla added a commit that referenced this issue Jan 9, 2023
arch-spatula added a commit that referenced this issue Jan 9, 2023
약을 삭제하는 함수를 추가합니다.
no-pla added a commit that referenced this issue Jan 10, 2023
회원가입 페이지 css 추가했습니다.
no-pla added a commit that referenced this issue Jan 10, 2023
플랫폼 별로 다른 기능, 하나로 리팩토링 했습니다.
no-pla added a commit that referenced this issue Jan 10, 2023
feat: 회원가입 페이지 css 추가 #1 #4
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants