This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; } |