UNPKG
tutorbook
Version:
latest (0.8.2)
0.8.2
0.7.9
Web app connecting students with expert mentors and tutors.
tutorbook.org
tutorbookapp/tutorbook
tutorbook
/
src
/
account
/
signout.ts
10 lines
(7 loc)
•
232 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
firebase
from
'@tutorbook/firebase'
;
import
'firebase/auth'
;
import
{ mutate }
from
'swr'
;
export
default
async
function
signout
(
):
Promise
<
void
> {
await
firebase.
auth
().
signOut
();
await
mutate
(
'/api/account'
,
null
); }