Update script to receive API key from verification endpoint
The API key is now generated during email verification, not registration. Changes: - Extract api_key from verification response - Save the API key to config after successful verification - Display confirmation message when API key is received This works with the new security flow where API keys are only issued to verified users. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -375,6 +375,15 @@ else
|
||||
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 ""
|
||||
|
||||
Reference in New Issue
Block a user