title: flutter_web_auth 0.4.1 integration Problem
body: <p>I am using the Wp Auth server plugin as Auth Provider and flutter_web_auth 0.4.1 as Auth client.</p>
  <p>in the flutter login page, I have placed a button &quot;Login with X&quot;. On tap the button called a function. See below.</p>
  <pre><code>onPressedGlobenLogin() async {
  
      var authUrl = Uri.https('globenplanet.com', '/oauth/authorize', {
        'client_id': &quot;MY_CLIENT_ID&quot;,
        'redirect_uri': &quot;com.globenplanet.shop:/&quot;,
        'response_type': 'code',
        'scope': 'basic',
      });
  
      var authCode = await FlutterWebAuth.authenticate(
          url: authUrl.toString(),
          callbackUrlScheme: &quot;com.globenplanet.shop&quot;
      );
  
      var code = Uri.parse(authCode).queryParameters['code'];
  
  
      var response = await http.post(Uri.parse(&quot;https://globenplanet.com/oauth/token&quot;),body: {
        'grant_type': 'authorization_code',
        'code': code,
        'client_id': &quot;MY_CLIENT_ID&quot;,
        'client_secret': &quot;MY_CLIENT_SECRET&quot;,
        'redirect_uri': &quot;com.globenplanet.shop:/&quot;
      });
  
      var accessToken = jsonDecode(response.body)['access_token'] as String;
  
      var apiMe = Uri.https('globenplanet.com', '/oauth/me', {
        'access_token': accessToken
      });
  
      try{
  
        http.Response apiResponse = await http.get(apiMe);
  
        if(apiResponse.statusCode == 200){
          var data = jsonDecode(apiResponse.body);
  
          ToastComponent.showDialog(data.message, context,
              gravity: Toast.CENTER, duration: Toast.LENGTH_LONG);
          AuthHelper().setGlobenUserData(data, accessToken);
          Navigator.push(context, MaterialPageRoute(builder: (context) {
            return Main();
          }));
  
        }
        else{
          print(&quot;error is in login api response&quot;);
        }
  
      } on Exception catch (e) {
        print(&quot;error is ....... $e&quot;);
        // TODO
      }
  
    }
  </code></pre>
  <p>My function on this line <code>AuthHelper().setGlobenUserData(data, accessToken);</code> Is below</p>
  <pre><code>setGlobenUserData(loginResponse, accessToken) {
      if (loginResponse) {
        is_logged_in.$ = true;
        is_logged_in.save();
        access_token.$ = accessToken;
        access_token.save();
        user_id.$ = loginResponse.ID;
        user_id.save();
        user_name.$ = loginResponse.user_login;
        user_name.save();
        user_email.$ = loginResponse.user_email;
        user_email.save();
      }
    }
  </code></pre>
  <p>And my AndroidManifest.xml file is</p>
  <pre><code>&lt;activity android:name=&quot;com.linusu.flutter_web_auth.CallbackActivity&quot; android:exported=&quot;true&quot;&gt;
              &lt;intent-filter android:label=&quot;flutter_web_auth&quot; android:autoVerify=&quot;true&quot;&gt;
                  &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;
                  &lt;data android:scheme=&quot;com.globenplanet.shop&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  </code></pre>
  <p>When I pressed the button, It opened and redirect to my WordPress website. After login into the website, It redirects to the app again without making me an authenticated user.</p>
  <p>I have tried to change <code>redirect_uri</code> to <code>com.globenplanet.shop://</code> And it shows an error <code>Invalid Client</code></p>
  <p>I am trying to fix the problem since last week. If anyone can help me, It would be a great help.
  Thanks in advance.</p>