#!/bin/bash
# get_grist_token.sh - Get Grist token from vault cache

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/vault-env.sh"

TOKEN=$(vaul…ken)

if [ -n "$TOKEN" ]; then
    echo "Grist token: ${TOKEN:***"
else
    echo "Error: Could not retrieve Grist token"
    exit 1
fi
