Skip to content

Commit 2bb321b

Browse files
committed
chore: temp avoid branding calls for Asgardeo V2 mode
1 parent 5a5707e commit 2bb321b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react/src/contexts/Asgardeo/AsgardeoProvider.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,12 @@ const AsgardeoProvider: FC<PropsWithChildren<AsgardeoProviderProps>> = ({
344344

345345
// Auto-fetch branding when initialized and configured
346346
useEffect(() => {
347+
// TEMPORARY: Asgardeo V2 platform does not support branding preference yet.
348+
// Tracker: https://github.com/asgardeo/javascript/issues/212
349+
if (config.platform !== Platform.AsgardeoV2) {
350+
return;
351+
}
352+
347353
// Enable branding by default or when explicitly enabled
348354
const shouldFetchBranding = preferences?.theme?.inheritFromBranding !== false;
349355

0 commit comments

Comments
 (0)