How do I log out of the Google Drive service? I do not want to switch accounts but to log out definitively.
I am working on an app that will use the user's Google Drive storage among other storage services. Therefore I need to allow the user to sign out of Google Drive.
Leaving aside I think this is a poor API implementation, this is how you log out.
The unregistration of the callbacks is to avoid the API showing the Google Account picker, in other words, to avoid reconnecting. Remember to set the callbacks again if you are going to sign in to any Google service later!
Optionally, you can get the operation's result: