✨ add qq oauth2 support / start landing page
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
import {defineStore} from 'pinia';
|
||||
import {reactive} from 'vue';
|
||||
|
||||
|
||||
export const useAuthSessionStore = defineStore(
|
||||
'user',
|
||||
() => {
|
||||
const user: any = reactive({
|
||||
accessToken: '',
|
||||
uid: '',
|
||||
refreshToken: '',
|
||||
expiresAt: 0,
|
||||
});
|
||||
|
||||
return {
|
||||
user,
|
||||
};
|
||||
},
|
||||
{
|
||||
// 开启数据持久化
|
||||
persist: {
|
||||
key: 'user',
|
||||
storage: sessionStorage,
|
||||
paths: ['user'],
|
||||
}
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user