Skip to content

Commit fa605e9

Browse files
authored
fix(tinybird): use correct name for admin token (#83)
Fixes: #82 Updates the getTokens.sh script to use the correct name "workspace admin token" when fetching the admin token from the Tinybird API. The script was previously using "admin token" which does not correspond to any token returned by the API, causing it to fail when extracting the admin token from the API response. This change ensures the correct token is identified and output for the user.
1 parent 504d553 commit fa605e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinybird/getTokens.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RESPONSE=$(curl -s -X GET \
3232
-H "Authorization: Bearer $USER_TOKEN")
3333

3434
# Parse tokens from response
35-
ADMIN_TOKEN=$(echo "$RESPONSE" | jq -r '.tokens[] | select(.name == "admin token") | .token')
35+
ADMIN_TOKEN=$(echo "$RESPONSE" | jq -r '.tokens[] | select(.name == "workspace admin token") | .token')
3636
TRACKER_TOKEN=$(echo "$RESPONSE" | jq -r '.tokens[] | select(.name == "tracker") | .token')
3737

3838
# Echo the tokens as proof of concept

0 commit comments

Comments
 (0)