Skip to content

Commit

Permalink
Change auth token expire time to 12h
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubZojdzik committed Apr 16, 2024
1 parent f2d4744 commit be15676
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
login() {
axios
.post(
`${url }/users/login`,
`${url}/users/login`,
{
email: this.email,
password: this.password
Expand All @@ -27,7 +27,7 @@ export default {
)
.then((response) => {
this.err = '';
VueCookie.set('authorization', response.data.token, '1h');
VueCookie.set('authorization', response.data.token, '12h');
store.commit('setUserData', { name: response.data.name, email: response.data.email });
this.$router.push('/');
})
Expand All @@ -38,7 +38,7 @@ export default {
}
},
components: {
RouterLink,
RouterLink
}
};
</script>
Expand Down Expand Up @@ -90,7 +90,7 @@ export default {
.forgot {
color: white;
margin-bottom: 1em;
margin-top: -.5em;
margin-top: -0.5em;
display: block;
}
Expand Down

0 comments on commit be15676

Please sign in to comment.