2FAuth/resources/js/packages/vue-storage.js

10 lines
309 B
JavaScript
Raw Normal View History

2020-11-26 20:39:15 +01:00
import Vue from 'vue'
2021-12-03 09:24:11 +01:00
import { Plugin } from 'vue2-storage'
2020-11-26 20:39:15 +01:00
// You can specify the plug-in configuration when connecting, passing the second object to Vue.use
2021-12-03 09:24:11 +01:00
Vue.use(Plugin, {
2020-11-26 20:39:15 +01:00
prefix: '',
driver: 'local',
2021-12-03 09:24:11 +01:00
ttl: 60 * 60 * 24 * 1000 * 122, // 4 month
replacer: (key, value) => value
2020-11-26 20:39:15 +01:00
})