-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
double bearers in authorization field in 5.5.0 for nuxt/Auth #250
Comments
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] |
Version
v5.5.0
Reproduction link
https://codepen.io
Steps to reproduce
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'
}
}
},
},
What is expected ?
Getting a token
getting user data
What is actually happening?
got token - ok
for getting user data sending
authorization: Bearer ...... , Bearer .......
...
got 401
for version 5.4.1 - no any problem
The text was updated successfully, but these errors were encountered: