Files
ladill-qr-plus/resources/views/partials/sso-keepalive.blade.php
T
isaaccladandCursor b759d78432
Deploy Ladill QR Plus / deploy (push) Successful in 28s
Improve cross-app SSO when switching between Ladill apps.
Keep the shared auth session alive with periodic pings, store OIDC refresh tokens for silent re-login, and route launcher links through SSO connect.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 12:06:40 +00:00

14 lines
568 B
PHP

@if (auth()->check())
@php $authPing = 'https://'.config('app.auth_domain').'/sso/ping'; @endphp
{{-- Same-site pings keep the shared auth.ladill.com session warm while using this app. --}}
<iframe src="{{ $authPing }}" hidden width="0" height="0" title=""></iframe>
<script>
(function () {
const pingUrl = @js($authPing);
const ping = () => fetch(pingUrl, { credentials: 'include', mode: 'no-cors' }).catch(() => {});
ping();
setInterval(ping, 5 * 60 * 1000);
})();
</script>
@endif