Category : firebase

I spend about half of my day debugging sometimes by deleting Firebase users, going through the sign-up process, validating the e-mail, etc so I can accurate recreate the conditions that led to the error. I’m planning to write a function to do this for me automatically, but before I do I wanted to ask if ..

Read more

I’m trying to authorise users using the Firebase Authentication platform through React-Native. The following code creates a very crude login/sign up page. import React, { useState } from ‘react’; import { View, Button, TextInput, StyleSheet } from ‘react-native’; import auth from ‘@react-native-firebase/auth’; export default function Login() { const [email, onChangeEmail] = useState(""); const [password, onChangePassword] ..

Read more

This is the code to retrieve from firestore. enter image description here useEffect(() => { let user = auth.currentUser; const unsubscribe = firestore.collection("users").onSnapshot((snapshot) => { setID(snapshot.docs.map((doc) => ({ id: doc.id, …doc.data() }))); }); console.log(id); return () => { unsubscribe(); }; }, []); this is the data in JSON Object: [ { id: "MiD7JmIOhXOmfDo14tKLi8DZg3y1", displayName: "Ren", ..

Read more

I’m creating a website using Firebase. The user should be able to upload & update their profile picture, so long as it is <10mb, and is a .jpg, .png, or .gif file. What is supposed to happen: User uploads a valid image Create or update a reference /users/{uid}/profileImage within Firebase Storage Use the getDownloadURL() method ..

Read more