Flyrell / axios-auth-refresh

Library that helps you implement automatic refresh of authorization via axios interceptors. You can easily intercept the original request when it fails, refresh the authorization and continue with the original request, without user even noticing.
MIT License
1.06k stars 91 forks source link

Docs: Provide example for server-side axios requests nuxt #201

Open natemate90 opened 2 years ago

natemate90 commented 2 years ago

Hi, many thanks for creating this plugin. Is there any documentation that shows how to use this with $axios in nuxt (server-side axios calls)?

Flyrell commented 2 years ago

Hi, unfortunately not, but it should be the same as on client side (I believe).

If it's any different and you have some spare time, feel free to contribute and create a simple example in the markdown file. Ideally, outside of the main documentation (in a different .md file) which will then be linked to the main README.md file once created. Thanks!