mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: update frontend to use cookie session
* use SessionMiddleware in socket.io server * add back jwtStrategy for commands
This commit is contained in:
1 parent
be5cd152a9
commit
34c277c886
13 files changed
+90
-116
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
import { useRouter } from 'vue-router'
|
||||
import { isAuthenticated, logout } from '../utils/auth'
|
||||
import { logout } from '../utils/auth'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
@@ -56,7 +56,7 @@ const handleLogout = () => {
|
||||
class="text-text-primary h-5 w-5"
|
||||
/>
|
||||
</button>
|
||||
<button v-if="isAuthenticated" @click="handleLogout">
|
||||
<button @click="handleLogout">
|
||||
<font-awesome-icon
|
||||
:icon="['fas', 'arrow-right-from-bracket']"
|
||||
class="text-text-primary h-5 w-5"
|
||||
|
||||
Reference in new issue
Block a user