2020-11-16 17:14:34 +01:00

11 lines
214 B
JavaScript

// Service to check authentication for user and to signOut
const Auth = {
signOut() {
localStorage.removeItem("token");
},
isAuth() {
return localStorage.getItem("token");
}
};
export default Auth;