Skip to content

Commit 49e15d5

Browse files
dependabot[bot]peterthomassen
authored andcommitted
chore(deps): bump axios from 0.27.2 to 1.4.0 in /www/webapp
Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.4.0. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v0.27.2...v1.4.0) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent 83c0789 commit 49e15d5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

www/webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@fontsource/roboto": "^5.0.3",
1313
"@mdi/font": "^6.9.96",
1414
"@mdi/js": "~7.2.96",
15-
"axios": "^0.27.2",
15+
"axios": "^1.4.0",
1616
"core-js": "^3.27.1",
1717
"javascript-time-ago": "^2.5.9",
1818
"pinia": "^2.0.30",

www/webapp/src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ router.beforeEach((to, from, next) => {
158158
const user = useUserStore();
159159
if (sessionStorage.getItem('token') && !user.authenticated) {
160160
const token = JSON.parse(sessionStorage.getItem('token'));
161-
HTTP.defaults.headers.common['Authorization'] = 'Token ' + token.token;
161+
HTTP.defaults.headers['Authorization'] = 'Token ' + token.token;
162162
user.login(token);
163163
recovered = true
164164
}

www/webapp/src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const HTTP = axios.create({
99

1010
function clearToken() {
1111
useUserStore().logout();
12-
HTTP.defaults.headers.common.Authorization = '';
12+
HTTP.defaults.headers.Authorization = '';
1313
sessionStorage.removeItem('token');
1414
}
1515

www/webapp/src/views/LoginPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default {
121121
email: this.email,
122122
password: this.password,
123123
});
124-
HTTP.defaults.headers.common.Authorization = `Token ${response.data.token}`;
124+
HTTP.defaults.headers.Authorization = `Token ${response.data.token}`;
125125
this.user.login(response.data);
126126
if (this.useSessionStorage) {
127127
sessionStorage.setItem('token', JSON.stringify(response.data));

0 commit comments

Comments
 (0)