codecasts / spa-starter-kit

A highly opinionated starter kit for building Single Page Applications with Laravel and Vue.js
MIT License
913 stars 134 forks source link

Implement the refresh token feature on the client. #39

Open cristiano-pacheco opened 7 years ago

cristiano-pacheco commented 7 years ago

When api returns a response with status 401 and with data.reason = 'token_expired'

1- Try to update the user's token, sending a request to /auth/refresh

vinicius73 commented 7 years ago

I'm working on it. I sent a PR with first adjusts #40 This a delicate situation, because have a lot details for consideration, the principal is requests concurrence

I will implement a preventive approach, not reactive Mais detalhes em breve