0maru / twitter_login

MIT License
54 stars 54 forks source link

scheme is not valid. #45

Closed niypoo closed 3 years ago

niypoo commented 3 years ago

always show up this warning in debug console,

[AuthenticationSession] Error: The provided scheme is not valid. A scheme must not include any special characters, such as ":" or "/"

and the auth process complete success, and I check the scheme url in info.plist it's without any / or : what is wrong

niypoo commented 3 years ago
final TwitterLogin twitterLogin = TwitterLogin(
        apiKey: Config.twitterToken,
        apiSecretKey: Config.twitterSecret,
        redirectURI: 'twitter-xxxxxxx://',
      );

<key>CFBundleURLSchemes</key>
<array>
<string>twitter-xxxxxxx</string>
</array>
xmkevinchen commented 3 years ago

Hitting the same warning in the debug console

0maru commented 3 years ago

@niypoo Sorry it took so long. This problem has been resolved by changing to use only the RedirectURI scheme. Please update your plugin version to v3.0.8