Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Davor Grubelić
    @dgrubelic
    I can't tell you much without seeing your code
    Can you gist your code here and i'll get back to you tomorrow...
    Maxence Rose
    @pirmax_twitter
    Hi, I have an error when I use vue-authenticate... TypeError: Cannot read property 'authenticate' of undefined : https://stackoverflow.com/questions/46940420/vueauthenticate-uncaught-typeerror-cannot-read-property-login-of-undefined
    Davor Grubelić
    @dgrubelic
    Do you have full source of your application?
    also, you specify this "JS file store.js:" are you using vuex in your app?
    Cameron B
    @cameronb23
    Quick question. Any way I can require users to present a referral code or activation code upon registration and check on server side for validity?
    Maxence Rose
    @pirmax_twitter
    @dgrubelic https://pastebin.com/3YaFxYnh Could you help me please?
    Now, I have this error: Uncaught TypeError: vueAuth.isAuthenticated is not a function
    I'm a novice person on VueJS...
    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...