Add missing fields and fix base64 compatibility for authentication