Skip to content

Commit

Permalink
Use local storage for session token.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Nov 13, 2024
1 parent 4683361 commit f3e2640
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions composables/useSessionToken.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { useCookie } from '#imports'
import { useLocalStorage } from '@vueuse/core'

export default function useSessionToken() {
return useCookie('session_token', {
default: () => '',
})
return useLocalStorage<string>('session', '')
}

0 comments on commit f3e2640

Please sign in to comment.