feat: update environment variables for development and production; add user store and authentication client
- Updated VITE_API_URL in .env.development to point to local server. - Retained VITE_API_URL in .env.production for production use. - Added user store for managing user profile and authentication state. - Created authentication client for handling user login and token management. - Introduced safeClient utility for making API requests with error handling. - Updated various components and views to utilize new user store and authentication logic. - Enhanced UI styles for better visual consistency across the application.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<script lang='ts' setup>
|
||||
import { ref } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
|
||||
const phoneNumber = ref("");
|
||||
@@ -23,7 +21,7 @@ function handleLogin() {
|
||||
}
|
||||
|
||||
function handleSignup() {
|
||||
router.push("/auth/signup");
|
||||
router.push(`/auth/signup?redirect=${encodeURIComponent(route.query.redirect as string || "/")}`);
|
||||
}
|
||||
|
||||
function goToTerms(type: "service" | "privacy") {
|
||||
|
||||
Reference in New Issue
Block a user