sendWeChatAuth function
The WeChat-Login is under Auth-2.0
This method login with native WeChat app.
For users without WeChat app, please use authByQRCode
instead
This method only supports getting AuthCode,this is first step to login with WeChat
Once AuthCode got, you need to request Access_Token
For more information please visit:
Implementation
Future<bool> sendWeChatAuth(
{required String scope,
String state = 'state',
bool nonAutomatic = false}) async {
assert(scope.trim().isNotEmpty);
return await _channel.invokeMethod(
'sendAuth',
{'scope': scope, 'state': state, 'nonAutomatic': nonAutomatic},
);
}