When using the token command the output goes to stderr instead of stdout which is unexpected. For example:
xoauth token my-alias-name
You can still capture the JSON output by redirecting stderr to a file instead:
xoauth token my-alias-name 2> my-token.json