Google Cloud console whoami (signed-in account)
Report which Google account the Google Cloud console is signed in as in this browser: display name and email. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Google Cloud console scripts.
Input
None
Output
evidence requiredloggedIn requiredname optionalemail optionalFAQ
Create OAuth client (Web application)
Create a Web-application OAuth 2.0 client in the Google Cloud Console (Google Auth Platform) for a project and return its clientId + clientSecret. Returns the full credential, including the client secret (the success dialog itself only shows the id). Requires the browser to already be signed in to Google, and a pre-existing OAuth consent screen for the project.
Delete OAuth client
Delete an OAuth 2.0 client from the Google Cloud Console (Google Auth Platform) by its client id. Needs console.cloud.google.com cookies (loggedIn). Deletion is immediate but the client can be restored for 30 days from the console's "Restore deleted OAuth clients" page.
