text: class AppStorage {
      //get from AuthController
  
      storeToken(token) {
          localStorage.setItem('token', token)
      }
  
      storeUser(user) {
          localStorage.setItem('user', user)
      }
  
      //concate
      store(user, token) {
          this.storeToken(token)
          this.storeUser(user)
      }
  
      clear() {
          localStorage.removeItem('token')
          localStorage.removeItem('user')
      }
  
      getToken() {
          return localStorage.getItem('token')
      }
  
      getUser() {
          return localStorage.getItem('user')
      }
  }
  
  export default AppStorage = new AppStorage()