Giter VIP home page Giter VIP logo

Comments (8)

aidanayala avatar aidanayala commented on August 22, 2024 8

This would be a great feature

from vue-authenticate.

WayneHiller avatar WayneHiller commented on August 22, 2024 4

I was looking at how to do this yesterday. Having it built in would be awesome.

from vue-authenticate.

nshCore avatar nshCore commented on August 22, 2024 3

@jonagoldman take a look at this

https://laracasts.com/discuss/channels/vue/jwt-auth-with-vue-resource-interceptor?page=1

I implemented refresh tokens using interceptors, basically check for a 401 header if so send an authorisation request before next()

from vue-authenticate.

dgrubelic avatar dgrubelic commented on August 22, 2024 2

This will soon be available as an improvement. For now, I don't have a specific timeline when this will be available.

from vue-authenticate.

rico avatar rico commented on August 22, 2024 2

@jkirkby91-2 any working example for this - for newcomers like me ...

from vue-authenticate.

dgrubelic avatar dgrubelic commented on August 22, 2024

For now, this library does not support automatic token refresh. You can provide another token in any ajax response (means that your api would take care of token's "expired" state) (in body [headers currently not supported]) and current one will automatically be replaced (if you are using vue-resource as request library, for any other, you'll have to do it manually).

I'll have to check out possible ways of doing this and see if i'm going to implement it. Of course, any suggestion is more than welcome.

from vue-authenticate.

arenasv86 avatar arenasv86 commented on August 22, 2024

Any update about this feature?

from vue-authenticate.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on August 22, 2024

+1

from vue-authenticate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.