Skip to content

Commit

Permalink
fix: add expiry date to cookie
Browse files Browse the repository at this point in the history
added an expiry date to the cookie
so that it stays even after a browser
restart.
  • Loading branch information
Jabster28 committed Aug 21, 2020
1 parent b1bb61e commit b672d45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Oauth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export default Vue.extend({
});
this.$q.cookies.set(
'mal_auth',
JSON.stringify(this.$router.currentRoute.query)
JSON.stringify(this.$router.currentRoute.query),
{
expires: 14600
}
);
this.$q.loading.hide();
if (this.$route.params.redirect)
Expand Down

1 comment on commit b672d45

@vercel
Copy link

@vercel vercel bot commented on b672d45 Aug 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.