Skip to content

Instantly share code, notes, and snippets.

@RomikMakavana
Created June 4, 2022 19:04
Show Gist options
  • Save RomikMakavana/8c9011370b2c5e62b2df0e3057b33226 to your computer and use it in GitHub Desktop.
Save RomikMakavana/8c9011370b2c5e62b2df0e3057b33226 to your computer and use it in GitHub Desktop.
AuthService.logout = async () => {
return new Promise((resolve) => {
const fauth = getAuth();
fauth.signOut().then(() => {
resolve({ status: true, message: "Logged out successfully." });;
}).catch(err => {
resolve({ status: true, message: "Logged out successfully." });
});
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment