text: import config from '@/app.config.json'
  
  const prefix = config.cookiePrefix
  
  /**
   * get/ add cookies from/ to localstorage
   */
  export default {
      setUser: function (user) {
          localStorage.setItem(prefix +  '-user', user)
      },
      getUser: function () {
          return localStorage.getItem(prefix + '-user')
      },
      getLocale: function () {
          return localStorage.getItem(prefix + '-locale')
      },
      setLocale: function (locale) {
          localStorage.setItem(prefix + '-locale', locale)
      },
      getPin: function () {
          return localStorage.getItem(prefix + '-pin')
      },
      setPin: function (pin) {
          localStorage.setItem(prefix + '-pin', pin)
      }
  } 