mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 19:39:10 -04:00
feat added custom pages
This commit is contained in:
10
.devcontainer/laradock/react/src/utils/Auth.js
vendored
Normal file
10
.devcontainer/laradock/react/src/utils/Auth.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Service to check authentication for user and to signOut
|
||||
const Auth = {
|
||||
signOut() {
|
||||
localStorage.removeItem("token");
|
||||
},
|
||||
isAuth() {
|
||||
return localStorage.getItem("token");
|
||||
}
|
||||
};
|
||||
export default Auth;
|
||||
Reference in New Issue
Block a user