Skip to content

Instantly share code, notes, and snippets.

View iansedano's full-sized avatar

Ian Currie iansedano

View GitHub Profile
@iansedano
iansedano / get_token.sh
Last active April 30, 2024 15:36
Google OAuth flow bash script
#!/bin/bash
# Usage
#
# . get_token.sh [CLIEND_ID] [CLIENT_SECRET] [SCOPE]
#
# Script will prompt you to visit a url to get the auth code,
# and wait for you to provide them and then output the tokens.