Shop, menu, and booking storefronts with OIDC SSO, Pay checkout, and merchant.ladill.com deployment workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
568 B
PHP
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
|