Let's install oidc-spa in your project:
{% tabs %} {% tab title="npm" %}
npm install --save oidc-spa
{% endtab %}
{% tab title="yarn" %}
yarn add oidc-spa
{% endtab %}
{% tab title="pnpm" %}
pnpm add oidc-spa
{% endtab %}
{% tab title="bun" %}
bun add oidc-spa
{% endtab %} {% endtabs %}
Create the following file in your public directory:
{% code title="public/silent-sso.html" %}
<html>
<body>
<script>
parent.postMessage(location.href, location.origin);
</script>
</body>
</html>
{% endcode %}