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.
1 parent fe07f75 commit 7cf585f6f22900ab53811b6db42dccf0d203a363
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 6 hours ago
Showing 3 changed files
View
server/SHServ/Controllers/AuthController.php
View
webclient/src/api/auth.js
View
webclient/src/features/auth/pages/LoginPage.vue