Skip to content

9장 371페이지 파이어베이스 9버전으로 수정 #108

Answered by rlaxodud214
munsangu asked this question in Q&A
Discussion options

You must be logged in to vote

import firebase from 'firebase/compat/app';
import config from '../../firebase.json';
import 'firebase/compat/auth';

const app = firebase.initializeApp(config);

const Auth = app.auth();

export const login = async ({ email, password }) => {
const { user } = await Auth.signInWithEmailAndPassword(email, password);
return user;
};

다음과 같이 import 부분을 변경하니 정상적으로 작동했습니다.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@munsangu
Comment options

Answer selected by munsangu
Comment options

You must be logged in to vote
1 reply
@munsangu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants