ShmuelCammebys

Results 19 comments of ShmuelCammebys

There is a workaround where you can define `expect fun WebView(params...)` and define the actual implementation on each platform with the same code (creates code duplication, but it works), and...

I am also having issues. The `Config` object requires a `GlobalKey`, and the only way to get that is with `router.configuration.navigatorKey` because `MaterialApp.router` doesn't have a `navigatorKey` param. Except when...

I was able to solve the issue by passing the NavigatorKey from my ShellRoute to the library: ```dart final _rootShellNavigatorKey = GlobalKey(); final _rootNavigatorKey = GlobalKey(); late final _router =...

@Avery-Dunn 1. Correct 2. Don't public client flows have to be allowed for MSAL iOS and Android to work? I mean that the localhost redirect URI was added under the...

This is the config: ![image](https://github.com/AzureAD/microsoft-authentication-library-for-java/assets/144174211/7c87153d-0ea0-42bf-b925-dca0f5472217)

@rayluo Yes, there was a SPA redirect URI to localhost. However, when the redirect URI for desktop was set to http://localhost:55259/desktop, MSAL4J hangs at `CompletableFuture.join` and returns "No Authorization code...

@Avery-Dunn @rayluo Unfortunately, a localhost redirect URI seems to be required in both platforms. Local web development requires a redirect URI, and our local desktop app development also requires a...

@KevinnZou The issue lies in this line: https://github.com/KevinnZou/compose-webview-multiplatform/blob/ed86a62809bea429a2b80ded716accc6f647b502/webview/src/commonMain/kotlin/com/multiplatform/webview/web/WebViewState.kt#L101 That initialization runs as soon as WebViewState is constructed (i.e., during composition when you call rememberWebViewStateWithHTMLData(...)). Inside WebViewCookieManager() (per the stack trace),...

This also works: ```kotlin @Composable fun SafeWebView(html: String, modifier: Modifier) { var mount by rememberSaveable { mutableStateOf(false) } // Wait one frame before composing the library's WebView LaunchedEffect(Unit) { //...