Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

logout user firebase

//fireBase 9

// do your imports 
import { getAuth, signOut } from "firebase/auth";

// initliase your auth 
const auth = getAuth();
// singout :)
signOut(auth).then(() => {
  // Sign-out successful.
}).catch((error) => {
  // An error happened.
});
 
PREVIOUS NEXT
Tagged: #logout #user #firebase
ADD COMMENT
Topic
Name
6+8 =