Blame view

api/dashboard/src/middleware/check-auth.js 250 Bytes
25df08e6c   Chris Bellas   Merged changes fr...
1
  // import store from '~/store'
0d8c0f816   Thanasis Naskos   initial commit
2
3
  
  export default async (to, from, next) => {
25df08e6c   Chris Bellas   Merged changes fr...
4
5
6
7
8
    // if (!store.getters['auth/check'] && store.getters['auth/token']) {
    //   try {
    //     await store.dispatch('auth/fetchUser')
    //   } catch (e) { }
    // }
0d8c0f816   Thanasis Naskos   initial commit
9
10
11
  
    next()
  }