axios: {
baseURL: process.env.API_ENDPOINT,
withCredentials: true
},
/////
auth: {
redirect: {
login: '/login/',
logout: '/',
callback: '/login/',
home: '/control/'
},
resetOnError: true,
fullPathRedirect: true,
rewriteRedirects: true,
strategies: {
password_grant: {
_scheme: 'local',
endpoints: {
login: {
url: 'api/v1/oauth/token/',
method: 'post',
propertyName: 'access_token'
},
logout: false,
user: {
url: 'api/v1/account/me/',
method: 'get'
}
}
},
'laravel.passport': {
url: process.env.API_ENDPOINT,
client_id: process.env.PASSPORT_CLIENT_ID,
client_secret: process.env.PASSPORT_CLIENT_SECRET
}
}
},
Getting a token
getting user data
got token - ok
for getting user data sending
authorization: Bearer ...... , Bearer .......
...
got 401
for version 5.4.1 - no any problem
I can confirm the same behaviour, also tried in changing the default tokenName for local strategy to lowercase 'authorization', but the issue stays (btw I noticed that every header sent with the request is Camel-Cased except for 'authorization' that now is all lowercase)
same problem
same problem too
i can confirme too, but not present in 5.4.2
Sorry for inconveniences. It is probably related to 2e514a4. Will investigate more.
fixed in @nuxtjs/[email protected]
Most helpful comment
fixed in @nuxtjs/[email protected]