Created
June 4, 2022 19:04
-
-
Save RomikMakavana/8c9011370b2c5e62b2df0e3057b33226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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