Problem: New users with email verification enabled receive api_key: null, but script only checked for existing_user flag, not null API key. Solution: Check if api_key is null first, then determine if it's: - Existing unverified user (load key from config) - New user with verification (api_key comes after verification) - New user without verification (api_key provided immediately) This fixes the 'Failed to extract API key' error for new registrations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 KiB
25 KiB