Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"auth" driver not set, but it is. #594

Closed
giekus opened this issue Sep 21, 2020 · 1 comment
Closed

"auth" driver not set, but it is. #594

giekus opened this issue Sep 21, 2020 · 1 comment

Comments

@giekus
Copy link

giekus commented Sep 21, 2020

Hi, I have used this package in various projects and it works perfectly, but today I have faced an issue. The following code throws me an error that auth driver is not set:

import auth from '@websanova/vue-auth'
import bearerDriver from '@websanova/vue-auth/drivers/auth/bearer.js'
import httpDriver from '@websanova/vue-auth/drivers/http/axios.1.x.js'
import routerDriver from '@websanova/vue-auth/drivers/router/vue-router.2.x.js'

Vue.use(auth, {
  auth: bearerDriver,
  http: httpDriver,
  router: routerDriver
})

I've tried to install earlier version "2.x-beta" and it is working with the same exact code, what is wrong here? I have looked through the information provided but did not see any changes in the setup recently.

Thank you.

@websanova
Copy link
Owner

Version 3 has a bit different setup, check the startup guide.

https://websanova.com/docs/vue-auth/guides/startup#setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants