0maru / twitter_login

MIT License
54 stars 54 forks source link

how to signout ? #21

Closed niypoo closed 3 years ago

niypoo commented 3 years ago

How can I do signout ?

0maru commented 3 years ago

This plugin can not not signout. because it uses Twitter session to login. However, you can change the login information of the application by forcing the login.

For example

final twitterLogin = TwitterLogin(
  apiKey: xxx,
  apiSecretKey: xxx,
  redirectURI: xxx,
);

// use forceLogin param
final authResult = twitterLogin.login(forceLogin: true);