Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-native-firebase-auth-android
Advanced tools
goto firebase console. https://console.firebase.google.com add android in your project and follow the steps from there.
npm install --save 'react-native-firebase-auth-android
rnpm link 'react-native-firebase-auth-android
After rnpm link
edit MainApplication.java file.
in MainApplication.java
import java.util.Arrays;
import java.util.List;
import rnfirebaseauth.ReactNativeFirebaseAuthAndroidPackage; // <- add this
.
.
.
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativeFirebaseAuthAndroidPackage() // <- add this
);
}
import FirebaseAuth from 'react-native-firebase-auth-android'
FirebaseAuth.createUserWithEmailAndPassword(email, pw, (user)=>{
console.log(user)
}, (err) => {
console.log(err)
})
FirebaseAuth.signInWithEmailAndPassword(email, pw, (user)=>{
console.log(user)
}, (err) => {
console.log(err)
})
FirebaseAuth.getCurrentUser((user)=>{
console.log(user)
}, (err) => {
console.log(err)
})
FirebaseAuth.sendPasswordResetEmail(email, (result)=>{
console.log(result)
}, (err) => {
console.log(err)
})
FirebaseAuth.googleLogin(googleIdToken, (user)=>{
console.log(user)
}, (err) => {
console.log(err)
})
FirebaseAuth.facebookLogin(facebookToken, (user)=>{
console.log(user)
}, (err) => {
console.log(err)
})
user = {
token: String
email: String,
uid: String, // not save this in local.
provider: String,
}
err = {
errorCode: Int,
errorMessage: String,
allErrorMessage: String
}
FAQs
you can use firebase-auth in react-native
The npm package react-native-firebase-auth-android receives a total of 0 weekly downloads. As such, react-native-firebase-auth-android popularity was classified as not popular.
We found that react-native-firebase-auth-android demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.