Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Davor Grubelić
    @dgrubelic
    @pirmax_twitter you are mixing apples and oranges here
    you are using both vue plugin and standalone instance
    if you have vuex store, then you don't need this
    Vue.use(VueAuthenticate)
    also, documentation clearly states...
    import VueAuthenticate from 'vue-authenticate'
    this line of code is used when using vue plugin
    if you cant standalone instance to use in vuex, you need to import it like this
    import { VueAuthenticate } from 'vue-authenticate'
    ansl, you are not initializing instance properly...
    const vueAuth = new VueAuthenticate(VueResource, {})
    you can't pass VueResource since it is vue plugin function
    you need to pass it's instance
    @cameronb23 i don't understand your flow. can you describe it in steps what you are thing to do?
    Maxence Rose
    @pirmax_twitter
    Sorry for the inconvenience.
    Maxence Rose
    @pirmax_twitter

    I have always the same problem.

    main.js: https://pastebin.com/SQtVx6Kg
    auth.js: https://pastebin.com/vyvm3MLA
    store.js: https://pastebin.com/YNq21nkc

    Davor Grubelić
    @dgrubelic
    again, you are doing it wrong here:
    import VueAuthenticate from 'vue-authenticate'
    auth.js: line 3
    Maxence Rose
    @pirmax_twitter
    ok, but I have this error now... Uncaught TypeError: Cannot read property 'push' of undefined
    auth.js line 29
    Davor Grubelić
    @dgrubelic
    try referencing $auth as an argument of bindRequestInterceptor function
    and instead of using this.$http.interceptors use $auth.$http.intercerceptors
    Maxence Rose
    @pirmax_twitter
    like this: this.$auth.$http.intercerceptors.push() ?
    I am bad, I understand more what I already understood
    Uncaught TypeError: Cannot read property '$http' of undefined
    Davor Grubelić
    @dgrubelic
    without this
    Maxence Rose
    @pirmax_twitter
    yes, but I have always the same error.
    Uncaught TypeError: Cannot read property 'push' of undefined
    Davor Grubelić
    @dgrubelic
    i misspelled
    $auth.$http. interceptors
    Maxence Rose
    @pirmax_twitter
    $auth.$http.interceptors.push()
    the same problem
    I had already corrected :)
    Davor Grubelić
    @dgrubelic
    can you pass Vue.prototype.$http instead of Vue.http to VueAuthenticate as first argument?
    Maxence Rose
    @pirmax_twitter
    I have this error now: Uncaught TypeError: Cannot read property 'http' of undefined
    with Vue.prototype.$http at first argument instead of VueResource
    Davor Grubelić
    @dgrubelic
    wait, what did you pass as first argument before?
    Maxence Rose
    @pirmax_twitter
    VueResource...
    Davor Grubelić
    @dgrubelic
    no, no...
    this is plugin function for Vue
    Maxence Rose
    @pirmax_twitter
    ok it's works !!!!
    Davor Grubelić
    @dgrubelic
    pass Vue.http
    there
    ok, have to run now..
    glad i helped
    Maxence Rose
    @pirmax_twitter
    thanks very much !
    Robert Metcalf
    @rmetcalf9
    I am researching this library. Can is be used to authenticate with google then retrieve a token to call google docs API's?
    Davor Grubelić
    @dgrubelic
    Yes. That is what you can use it for. You have google oauth example i /example folder