My local copy of the API key seems to randomly stop working for me (See the example below). In the example, all of sudden the Oasis command stops working properly. I have rebuild the environmental variable used for authentication to get it working again. That is what the extra commands are doing. After it is rebuilt, it works fine.
$ ./oasis list organizations
1:22PM FTL Failed to list organizations error="rpc error: code = Unauthenticated desc = "
$ # Extracts the key_id and key_secret into variables
$ export key_id=$(awk --field-searator=" " '{print $2}' tempfile | sed -n '2p')
$ export key_secret=$(awk --field-searator=" " '{print $2}' tempfile | sed -n '3p')
$ # Create a variable
$ export OASIS_TOKEN=$(./oasis login --key-id=$key_id --key-secret=$key_secret)
$ # Lists the API keys
$ ./oasis list apikeys
Id | User-Id | Organization-Id | Readonly | Created-At | Expires-At | Revoked-At
ossacmae1a92qyaoellt | google-oauth2|103158209851494066752 | | - | 1 hour ago | |
$ ./oasis list organizations
Id | Name | Description | Url | Created-At
105424485 | ScriptOrgDB | This ORG was created by a script | /Organization/105424485 | 1 hour ago
...