
user.updateProfile({
displayName: "New User Name",
photoURL: "https://example.com/new-photo.jpg",
})
위 명령어에서 undefined is not a function이 떴다.
firebase 9버전 이상에서는 위 방식의 명령어 사용이 안된다고 한다.
updateProfile을 import하고 아래와 같이 사용해야한다.
import { updateProfile } from 'firebase/auth';
updateProfile(user, {
displayName: name,
photoURL : "https://example.com/new-photo.jpg",
});
이거 말고도 명령어가 많이 바뀌었는데 나중에 한 번 정리해봐야겠다