Skip to content

Instantly share code, notes, and snippets.

View AlcaDesign's full-sized avatar
💜
Doing something

Jacob Foster AlcaDesign

💜
Doing something
View GitHub Profile
#!/bin/bash
# Revokes any Twitch OAuth2 token.
# Usage: ./revoke-twitch-token.sh
# The script will prompt for the token to avoid leaking a valid token
# to history or environment in case an error occurs while attempting to revoke.
command -v jq >/dev/null 2>&1 || { echo >&2 "Please install 'jq'."; exit 1; }
command -v curl >/dev/null 2>&1 || { echo >&2 "Please install 'curl'."; exit 1; }