MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/public_html/ezwork/resources/admin/js/auth.js
import bearer from '@websanova/vue-auth/drivers/auth/bearer'
import axios from '@websanova/vue-auth/drivers/http/axios.1.x'
import router from '@websanova/vue-auth/drivers/router/vue-router.2.x'

// Auth base configuration some of this options
// can be override in method calls
const config = {
  auth: bearer,
  http: axios, 
  router: router,
  tokenDefaultName: 'laravel-vue-spa',
  tokenStore: ['localStorage'],
  rolesVar: 'role',
  registerData: {url: '/api/auth/register', method: 'POST', redirect: '/welcome'},
  loginData: {url: '/api/auth/login', method: 'POST', redirect: '', fetchUser: true},
  logoutData: {url: '/api/auth/logout', method: 'POST', redirect: '/', makeRequest: true},
  fetchData: {url: '/api/auth/user', method: 'GET', enabled: true},
  refreshData: {url: '/api/auth/refresh', method: 'GET', enabled: true, interval: 21600}
}
export default config