I am using oauth2 for my python CLI script.
I am using the code from here : https://github.com/google/google-api-python-client/blob/master/samples/calendar_api/calendar_sample.py
I am running the script with ("--noauth_local_webserver" ) option .
The first time i ran the script , it asked me to sign in to google page and gave me a verification code which i input in my script and it authorized successfully. But from next time onwards its taking that same account which I logged in the first time by default.
I have tried closing the terminal , but still it doesn't show up the oauth2 UI for signing in again .
So I am not able to figure out how to log out of this thing when i am terminating my script. Based on the shown code , how to logout or at least re signin when i run my script every time ?