Change auth token lifetime

This commit is contained in:
Jai A
2021-04-11 11:39:05 -07:00
parent 8418c21096
commit cecafb726c
2 changed files with 3 additions and 3 deletions

View File

@@ -48,9 +48,9 @@ import scopes from '@/privacy-toggles'
export default {
name: 'Privacy',
fetch() {
if (this.$cookies.get('modrinth-scopes') !== null) {
this.$store.dispatch('consent/loadFromCookies', this.$cookies)
this.$store.dispatch('consent/loadFromCookies', this.$cookies)
if (this.$store.state.consent.is_consent_given) {
Object.keys(scopes.settings).forEach((key) => {
scopes.settings[key].value = false
})