Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

auth.js

9 lines204 Bytes

1// mock login and logout
2​
3export function login() {
4 document.cookie = 'swr-test-token=swr;'
5}
6​
7export function logout() {
8 document.cookie = 'swr-test-token=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'
9}