rluders / wn-jwtauth-plugin

JWTAuth Plugin for WinterCMS
GNU General Public License v3.0
29 stars 28 forks source link

How to deal with Axios async ? #55

Closed Incremental92 closed 3 years ago

Incremental92 commented 3 years ago

I'd like to refresh the token to check it's validity, before changing the user profile or password. The problem is that the refresh response arrives after the profile update axios call. What could you advice to wait the new token and insure the user access is still valid ? Thanks for your help.

Incremental92 commented 3 years ago

A solution here : https://forum.quasar-framework.org/topic/7611/how-to-serialize-axios-functions

rluders commented 3 years ago

I'll assume that you already figured it out. So, I'm closing this one. Feel free to reopen if you think it is necessary.