#!/bin/bash
# store_grist_token.sh - Store Grist token (uses vault cache now)

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

TOKEN=$(vaul…ken)

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