isAuthenticated() {
    if (state.authenticated) return true

    var userId = Cookie.get('rtadmin_user_id')
    if (userId && userId.length > 0) state.authenticated = true

    return state.authenticated
  }
 getAuthToken() {
   if (state.token) return state.token
   state.token = Cookie.get('rtadmin_auth_token')
   return state.token
 }
 getUserId() {
   if (state.id) return state.id
   state.id = Cookie.get('rtadmin_user_id')
   return state.id
 }