Files
ai-recruit-site-template/deploy-to-apps.example.sh
Mikael Westöö ae3e38a3af Fix script to handle new user with email verification
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>
2026-01-24 22:50:15 +01:00

25 KiB