invertase / flutter_desktop_webview_auth

WebView OAuth flows for desktop flutter apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webview in blank

orelvis15 opened this issue · comments

I am trying to configure authentication with google but when it opens the webview it is blank.

MacOS 12.5 Monterrey

  • Flutter 3.0.5 • channel stable
  • firebase_core_desktop: ^1.0.2
  • firebase_auth_desktop: ^1.0.2
  • firebase_core: ^1.20.1
  • firebase_auth: ^3.6.3

Aug-17-2022 13-32-14

Never pass this method, is waiting.

final result = await DesktopWebviewAuth.signIn(
    GoogleSignInArgs(
      clientId: _googleClientId,
      redirectUri: _redirectUri,
      scope: 'email',
    ),
  );

I found the error, it turns out that I was adding

    <key>com.apple.security.network.server</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>

to my Release.entitlements but I also had to add it to DebugProfile.entitlements