(theme: THEME_MODE_TYPE)
| 35 | const authServiceIframeMap: Map<string, HTMLIFrameElement> = new Map(); |
| 36 | |
| 37 | function getTheme(theme: THEME_MODE_TYPE): string { |
| 38 | if (theme === THEME_MODES.light) return "light"; |
| 39 | if (theme === THEME_MODES.dark) return "dark"; |
| 40 | return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; |
| 41 | } |
| 42 | |
| 43 | export class AuthProvider { |
| 44 | public sdkUrl: string; |