hecsalazarf / gom-ui

Gom (Graph order management) UX
2 stars 1 forks source link

ping fetch should be at app boot #32

Closed hecsalazarf closed 5 years ago

hecsalazarf commented 5 years ago

Maybe at GOM layout created hook?

if (!this.$q.cookies.has('csrf-token')) {
  await this.$axios.get('auth/ping')
}
hecsalazarf commented 5 years ago

ping to obtain csrf token (if it does not exist), is executed through Apollo middleware