diff --git a/deploy-to-apps.example.sh b/deploy-to-apps.example.sh index 3031083..f33e1b8 100644 --- a/deploy-to-apps.example.sh +++ b/deploy-to-apps.example.sh @@ -445,6 +445,15 @@ if [ "$VERIFIED" != "true" ]; then if echo "$VERIFY_RESPONSE" | grep -q '"verified":true'; then echo "✅ Email verified successfully!" echo "" + + # Extract API key from verification response + VERIFIED_API_KEY=$(echo "$VERIFY_RESPONSE" | jq -r '.api_key // ""') + if [ -n "$VERIFIED_API_KEY" ] && [ "$VERIFIED_API_KEY" != "null" ]; then + SAAC_API_KEY="$VERIFIED_API_KEY" + echo "🔑 API key received and saved" + echo "" + fi + VERIFIED=true save_config echo ""