|
Add Bearer token persistence for cross-domain SPA auth
- api/auth.js: persist access token in localStorage so it survives page reloads and works across domains (panel vs server IP). - LoginPage.vue: on mount, check for access_token in URL query params (from OAuth callback) and initialize auth store. - AuthController::callback(): append access_token + expires_in to the redirect URL so the SPA can capture it. |
|---|
|
|
| server/SHServ/Controllers/AuthController.php |
|---|
| webclient/src/api/auth.js |
|---|
| webclient/src/features/auth/pages/LoginPage.vue |
|---|