If you're having issues don't hesitate to reach out on Discord!
Let's install oidc-spa in your project:
npm install oidc-spayarn add oidc-spapnpm add oidc-spaCreate the silent-sso.htm file in your public directory:
Don't use logout({ redirectTo: "home" }) but explicitely tell where you want your users to be redirected after logout using logout({ redirectTo: "specific url", url: "/my-home" }) or use logout({ redirectTo: "current page" }).
bun add oidc-spa<!doctype html>
<html>
<body>
<script>
parent.postMessage(location.href, location.origin);
</script>
</body>
</html>