wellnua-lite/metro.config.js
Sergei 8c0be34f65 Fix WebView session expiration with auto-refresh token
- Add refreshToken() method to automatically refresh expired tokens
- Add isTokenExpiringSoon() to check if token expires within 1 hour
- Store password in SecureStore for auto-refresh capability
- Add periodic token check every 30 minutes in WebView
- Intercept WebView navigation to login pages and refresh instead
- Re-inject fresh token into WebView localStorage after refresh
- Add metro.config.js to fix Metro bundler path resolution

This prevents the app from showing web login page when session expires.
2026-01-07 12:11:13 -08:00

9 lines
245 B
JavaScript

const { getDefaultConfig } = require('expo/metro-config');
const config = getDefaultConfig(__dirname);
// Explicitly set projectRoot to prevent Metro from looking at parent directories
config.projectRoot = __dirname;
module.exports = config;