How to use Firebase Authentication in React? #176635
-
BodyHey everyone 👋 Guidelines
|
Beta Was this translation helpful? Give feedback.
Answered by
lizansarkar14-dev
Oct 12, 2025
Replies: 2 comments 2 replies
-
|
You can use Firebase Authentication by importing import { getAuth, createUserWithEmailAndPassword } from "firebase/auth";
const auth = getAuth();
createUserWithEmailAndPassword(auth, email, password)
.then((userCredential) => {
console.log(userCredential.user);
})
.catch((error) => {
console.error(error.message);
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lizansarkar
-
|
i think you see more public repo for this matter and soved this porblem. thank you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use Firebase Authentication by importing
getAuthandcreateUserWithEmailAndPasswordlike this: