diff --git a/.env b/.env index 508e83d..b818b2e 100644 --- a/.env +++ b/.env @@ -10,11 +10,6 @@ # ---- Local Standalone Backend (FastAPI on Port 8000) ---- # For Local Web: http://localhost:8000/api # For Physical Mobile Devices: http://YOUR_LOCAL_IP:8000/api -<<<<<<< Updated upstream -EXPO_PUBLIC_API_URL=http://localhost:8000/api -EXPO_PUBLIC_BACKEND_PORT=8000 -EXPO_PUBLIC_MEDIA_BASE_URL=http://localhost:9000/ -======= # EXPO_PUBLIC_API_URL=http://localhost:8000/api # EXPO_PUBLIC_BACKEND_PORT=8000 # EXPO_PUBLIC_MEDIA_BASE_URL=http://localhost:9000/ @@ -22,10 +17,9 @@ EXPO_PUBLIC_MEDIA_BASE_URL=http://localhost:9000/ # old working .env file # Production Dev -EXPO_PUBLIC_API_URL=https://api.acupedia.in/api -EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store +# EXPO_PUBLIC_API_URL=https://api.acupedia.in/api +# EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store # Local Dev -# EXPO_PUBLIC_API_URL=http://localhost:8000/api -# EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000 ->>>>>>> Stashed changes +EXPO_PUBLIC_API_URL=http://localhost:8000/api +EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000 diff --git a/app.json b/app.json index 2e40272..a3ed173 100644 --- a/app.json +++ b/app.json @@ -19,7 +19,8 @@ }, "predictiveBackGestureEnabled": false, "package": "com.anonymous.acupedia", - "usesCleartextTraffic": true + "usesCleartextTraffic": true, + "allowBackup": false }, "web": { "output": "static", diff --git a/src/store/auth.store.ts b/src/store/auth.store.ts index 371c40c..819f14a 100644 --- a/src/store/auth.store.ts +++ b/src/store/auth.store.ts @@ -269,6 +269,9 @@ export const useAuthStore = create()( return; } setApiAccessToken(state?.accessToken ?? null); + if (state?.accessToken && state?.isAuthenticated) { + void useAuthStore.getState().refreshSession(); + } }, }, ),