Skip to content

Commit

Permalink
fix:(auth): can't login using Facebook/Google social login #267
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Oct 15, 2022
1 parent 5ffed01 commit 3b4306b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/components/Login/WebViewLogin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,20 @@ class WebViewLogin extends HookConsumerWidget {
return Scaffold(
body: SafeArea(
child: InAppWebView(
initialOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions(
userAgent:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 afari/537.36",
),
),
initialUrlRequest: URLRequest(
url: Uri.parse("https://accounts.spotify.com/"),
),
androidOnPermissionRequest: (controller, origin, resources) async {
return PermissionRequestResponse(
resources: resources,
action: PermissionRequestResponseAction.GRANT);
resources: resources,
action: PermissionRequestResponseAction.GRANT,
);
},
onLoadStop: (controller, action) async {
if (action == null) return;
Expand Down

0 comments on commit 3b4306b

Please sign in to comment.