Logo-amall

I'm trying to set up a per-route authentication guard with vue-router in Quasar, and I cannot figure out how to get `isAuthentication` working. I do not know how to reference Nhost. The documentation speaks of setting up a common `router.beforeEach`, but with Quasar, the function looses references to Nhost, so I cannot ask it for authentication either. Are there any examples of per-route authentication with Quasar/vue-router?

Last active 4 months ago

3 replies

15 views

  • MA

    I'm trying to set up a per-route authentication guard with vue-router in Quasar, and I cannot figure out how to get isAuthentication working. I do not know how to reference Nhost. The documentation speaks of setting up a common router.beforeEach, but with Quasar, the function looses references to Nhost, so I cannot ask it for authentication either.

    Are there any examples of per-route authentication with Quasar/vue-router?

  • PI

    You can have a look at this
    https://github.com/plmercereau/nhs-jobs

  • PI

    (quasar rocks)

Last active 4 months ago

3 replies

15 views