Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Davor Grubelić
    @dgrubelic
    this is because they handle headers differently
    this library is made for JWT based authentication systems. This means that you need to return authentication token to the client app. That token will then be send to your application api in each request
    @Aleksey-Danchin what does this mean: > What do ctx.login(user) ?
    Same question is for All session data in cookies? 0_o - JWT is stored in either localStorage, sessionStorage or in app memory. Custom made cookieStorage is yet to be released in some future version.
    SeoRoman
    @SeoRoman
    Following the guide on installation with Vuex, it states.... VueAuthenaticate.factory is not a function
    SeoRoman
    @SeoRoman
    well, I got further switching from CommonJS to ES6, however now it states that vueAuth is not defined... (which I achieved by adding that information to the auth.js store, but once doing so, it states that vueAuth.login is not a function
    SeoRoman
    @SeoRoman
    if I use import { VueAuthenticate } from 'vue-authenticate' I get Object.defineProperties called on non-object
    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