We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be0d5b commit 6ace50bCopy full SHA for 6ace50b
README.md
@@ -20,10 +20,9 @@
20
{
21
modules: [
22
'@nuxtjs/auth',
23
- // ...
24
- // Axios module should be included AFTER AUTH
+
+ // ...Axios module should be included AFTER @nuxtjs/auth
25
'@nuxtjs/axios',
26
27
],
28
auth: {
29
/* auth options */
templates/auth.plugin.js
@@ -4,6 +4,12 @@ import authStore from './auth.store'
4
export default async function (ctx, inject) {
5
const { store } = ctx
6
7
+ // Check axios module is correctly registered
8
+ if (!ctx.$axios) {
9
+ /* eslint-disable no-console */
10
+ console.error('[@nuxtjs/auth]', 'Please make sure @nuxtjs/axios is added after this module!')
11
+ }
12
13
// Inject $ctx
14
inject('ctx', ctx)
15
0 commit comments