0maru / twitter_login

MIT License
54 stars 54 forks source link

No Way To Logout? #42

Closed Andrious closed 3 years ago

Andrious commented 3 years ago

Great work! Null safety and everything! However, and I may be missing something here, no logout routine?

  /// Logs the currently logged-in user out.
  Future<void> logOut() async => channel.invokeMethod('logOut', _keys);
0maru commented 3 years ago

This plugin is using the browser session, so you can't logout. Instead, it can use force login.

login(forceLogin: true);

If you don't use sessions, switching between accounts is easier, but i don't think it's smart.