feat: add Vue.js frontend with JWT auth, Pinia store, and Docker

This commit is contained in:
Cipher Vance
2025-11-20 19:24:43 -06:00
parent 580a029742
commit 1f2eb1e836
16 changed files with 1623 additions and 75 deletions

View File

@@ -0,0 +1,19 @@
import { useAuthStore } from '@/stores/auth'
export function useAuth() {
const authStore = useAuthStore()
return {
user: authStore.user,
isAuthenticated: authStore.isAuthenticated,
error: authStore.error,
loading: authStore.loading,
signup: authStore.signup,
login: authStore.login,
logout: authStore.logout,
requestPasswordReset: authStore.requestPasswordReset,
resetPassword: authStore.resetPassword,
fetchProfile: authStore.fetchProfile,
updateProfile: authStore.updateProfile,
}
}