diff options
author | vnugent <public@vaughnnugent.com> | 2024-04-20 12:07:13 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-04-20 12:07:13 -0400 |
commit | 8d57b050d499c2d85005bebbc2892b190cbb18cc (patch) | |
tree | 95786178f07a49239c3a7e92228b34590be30249 /lib/vnlib.browser/src/session | |
parent | a7cf7c8987b8847984629293d8eb27908f3de3dd (diff) |
Squashed commit of the following:
commit 2963bf62919b3bfac4aa5055d57fe91f93ca8a0b
Author: vnugent <public@vaughnnugent.com>
Date: Sat Apr 20 11:59:45 2024 -0400
chore: Package updates
commit 9539717a751baae762498a2cadfe94ef8fda5830
Merge: 44803e0 a7cf7c8
Author: vnugent <public@vaughnnugent.com>
Date: Mon Apr 8 22:04:26 2024 -0400
Merge branch 'master' into develop
commit 44803e06d1aa45496c04127930aa8897272d42f6
Author: vnugent <public@vaughnnugent.com>
Date: Mon Apr 8 21:41:38 2024 -0400
fix: dangling/expired session security check and cookie cleanup
commit 1082bd146549a1aff47877bcd28e6be1ce0ef5e9
Author: vnugent <public@vaughnnugent.com>
Date: Sat Mar 30 22:20:29 2024 -0400
feat(app): Add AppData client plugin and browser library updated
commit ec9b42f4cacbeae8a0b4d96e48bd9e522b3a9145
Merge: 2a11454 27b487b
Author: vnugent <public@vaughnnugent.com>
Date: Sun Mar 24 21:16:05 2024 -0400
Merge branch 'master' into develop
commit 2a114541a3bfddae887adaa98c1ed326b125d511
Author: vnugent <public@vaughnnugent.com>
Date: Sun Mar 24 20:53:38 2024 -0400
refactor: pull apart session authorization for future dev
commit f8aea6453ddb2d56c1ce2ecb6a9e67d1af523c2e
Author: vnugent <public@vaughnnugent.com>
Date: Thu Mar 21 14:33:21 2024 -0400
feat: Add optional svg base64 icons for social OAuth2 connections
commit cc29bed99dc9e151315cce75e50d55dca306b532
Author: vnugent <public@vaughnnugent.com>
Date: Sun Mar 10 21:58:27 2024 -0400
source tree project location updated
Diffstat (limited to 'lib/vnlib.browser/src/session')
-rw-r--r-- | lib/vnlib.browser/src/session/internal.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vnlib.browser/src/session/internal.ts b/lib/vnlib.browser/src/session/internal.ts index 71e1cfa..4fba638 100644 --- a/lib/vnlib.browser/src/session/internal.ts +++ b/lib/vnlib.browser/src/session/internal.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Vaughn Nugent +// Copyright (c) 2024 Vaughn Nugent // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -17,7 +17,7 @@ // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -import { defaults, isEmpty, isNil } from 'lodash-es'; +import { defaults, isEmpty, isNil, noop } from 'lodash-es'; import { computed, watch, type Ref } from "vue"; import { get, set, toRefs } from '@vueuse/core'; import { SignJWT } from 'jose' @@ -235,8 +235,8 @@ export const createSession = ( const isLocalAccount = computed<boolean>(() => cookieValue.value === ServerLiTokenValues.LocalAccount); - //Watch the logged in value and if it changes from true to false, clear the token - watch(loggedIn, value => value ? null : token.value = null); + //Watch the logged in cookie value and if it changes from true to false, clear the token + watch(cookieValue, value => value ? noop() : set(token, null)); return { loggedIn, |