fix(auth): prefetch SSO state in SSR to prevent layout flash

This commit is contained in:
Yash Kumar 2026-09-09 20:09:23 +05:30
parent bda8124291
commit 9cae609a0a

View File

@ -498,6 +498,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
// Prefetch the public branding so the login/onboarding logo and app name
// render correctly on the server (no flash of default branding).
await helpers.whitelabeling.getPublic.prefetch();
await helpers.sso.showSignInWithSSO.prefetch();
if (IS_CLOUD) {
try {