From d2cc0a32c8f64c746d4c11835175b0d108c1ae7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20West=C3=B6=C3=B6?= Date: Sat, 24 Jan 2026 23:15:22 +0100 Subject: [PATCH] Update script to send user_id in verify request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The verify endpoint is now public and doesn't require API key. Instead it takes user_id and verification_code in the request body. Changes: - Removed X-API-Key header from verify request - Added user_id to request body - Endpoint returns API key after successful verification 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- deploy-to-apps.example.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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