fix: add signout api to clear refresh token from db and cookie

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2023-02-24 18:14:41 +05:30
parent 29d4544bb1
commit b2577a8e43
10 changed files with 105 additions and 16 deletions

View File

@@ -11,8 +11,8 @@ const route = useRoute()
const email = computed(() => user.value?.email ?? '---')
const logout = () => {
signOut()
const logout = async () => {
await signOut()
navigateTo('/signin')
}
</script>