Compare commits

..

3 Commits

Author SHA1 Message Date
Ferdinand Thiessen b2e69e3b61 feat(app): Set lifetime to 14 days on capacitor.
Do not annoy users on capacitory apps with daily logging in again
2021-12-05 13:34:40 +01:00
Ferdinand Thiessen 6652025143 fix(api): Load current user in login function of mainStore 2021-12-05 13:33:02 +01:00
Ferdinand Thiessen e3856c77d4 chore(api): Deprecate findUser from user store.
Is the same as getUser
2021-12-05 13:32:10 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ export const useUserStore = defineStore({
getters: {},
actions: {
/**
* @deprecated Use getUser instead, will be removed with first beta release
* @todo Remove with first beta release
*/
findUser(userid: string) {
return this.users.find((user) => user.userid === userid);
},