#!/bin/bash

# Clear Apple credentials cache to force re-authentication
# This allows selecting a different Provider/Team

echo "Clearing Apple authentication cache..."

# Remove the entire .app-store directory (contains Apple session cookies)
rm -rf ~/.app-store

echo "Cache cleared!"
echo ""
echo "Now run 'eas credentials' or 'eas build' and you should be able to"
echo "select a different Provider when prompted during Apple login."
echo ""
echo "When prompted to select a Provider, choose:"
echo "  Provider: Robert's account (the one with Team ID UHLZD54ULZ)"
echo ""
