auth.js 230 Bytes
Newer Older
이재연's avatar
이재연 committed
1
2
3
4
5
6
7
8
9
10
import axios from "axios"

export function handleLogin(){
    localStorage.setItem('loginStatus','true')
}

export async function handleLogout(){
    localStorage.removeItem('loginStatus')
    await axios.get('/api/auth/logout')
}