Home

Issue: 1805

Using axios globally

[issue link]

I want to use pre-configured Axios in most of my components, but not to write “import api from ‘~/components/api.js’;” any time. How can I register it globally? (especially with access to request, as I’ll need to fetch JWT tokens from cookies on server-side)

This question is available on Nuxt.js community (#c1619)