Skip to content

Commit

Permalink
Merge remote-tracking branch 'LinusU/master' into fix-135
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Jan 11, 2023
2 parents d29e862 + 6afdfdc commit ce04eab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flutter_web_auth_2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ final result = await FlutterWebAuth2.authenticate(url: url.toString(), callbackU
// Extract code from resulting url
final code = Uri.parse(result).queryParameters['code'];
// Construct an Uri to Google's oauth2 endpoint
final url = Uri.https('www.googleapis.com', 'oauth2/v4/token');
// Use this code to get an access token
final response = await http.post('https://www.googleapis.com/oauth2/v4/token', body: {
final response = await http.post(url, body: {
'client_id': googleClientId,
'redirect_uri': '$callbackUrlScheme:/',
'grant_type': 'authorization_code',
Expand Down

0 comments on commit ce04eab

Please sign in to comment.