11 lines
214 B
JavaScript
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;
|