skip to Main Content

User Data Not Written to Firestore After Successful Firebase Auth Signup in Flutter, No Errors Shown

import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; class SignUpPage extends StatelessWidget { const SignUpPage({super.key}); @override Widget build(BuildContext context) { double h = MediaQuery.of(context).size.height / 932; double w = MediaQuery.of(context).size.width / 430; final emailController = TextEditingController(); final passwordController = TextEditingController();…

VIEW QUESTION

How do I set persistence using firebase and typscript?

I'm trying to set the persistence to 'Session' using typescript/react, but getting type errors. Here is some of code: import { auth } from "../auth/firebase"; import { createUserWithEmailAndPassword, sendPasswordResetEmail, setPersistence, signInWithCustomToken, signInWithEmailAndPassword, updateProfile, } from "firebase/auth"; This is my useEffect:…

VIEW QUESTION
Back To Top
Search