diff --git a/deploy-to-apps.example.sh b/deploy-to-apps.example.sh index 4d7ce09..0308e2f 100644 --- a/deploy-to-apps.example.sh +++ b/deploy-to-apps.example.sh @@ -372,11 +372,10 @@ else echo "" echo "🔐 Verifying email..." - # Verify email + # Verify email (public endpoint - no API key needed) VERIFY_RESPONSE=$(curl -s -X POST "${SAAC_API}/users/verify" \ - -H "X-API-Key: ${SAAC_API_KEY}" \ -H "Content-Type: application/json" \ - -d "{\"verification_code\":\"$VERIFY_CODE\"}") + -d "{\"user_id\":\"$USER_ID\",\"verification_code\":\"$VERIFY_CODE\"}") # Check if verified if echo "$VERIFY_RESPONSE" | grep -q '"verified":true'; then @@ -433,11 +432,10 @@ if [ "$VERIFIED" != "true" ]; then echo "" echo "🔐 Verifying email..." - # Verify email + # Verify email (public endpoint - no API key needed) VERIFY_RESPONSE=$(curl -s -X POST "${SAAC_API}/users/verify" \ - -H "X-API-Key: ${SAAC_API_KEY}" \ -H "Content-Type: application/json" \ - -d "{\"verification_code\":\"$VERIFY_CODE\"}") + -d "{\"user_id\":\"$USER_ID\",\"verification_code\":\"$VERIFY_CODE\"}") # Check if verified if echo "$VERIFY_RESPONSE" | grep -q '"verified":true'; then