DEV Community

Discussion on: How to make nuxt auth working with JWT - a definitive guide

Collapse
 
masiota profile image
Mahmoud AlSharif

Thanks for sharing this. I couldn't help but wonder isn't this solution much simpler? stackoverflow.com/a/53866447/12634779

Collapse
 
mrnaif2018 profile image
MrNaif2018

Hi! It might be, but this solution makes tokens refresh a bit before access token expiration, which is useful sometimes. Plus middleware was needed because of bugs of @nuxt/auth on server side. They are releasing refresh token support soon, so soon all those solutions wouldn't be needed.