* Migrated from OnLogin to LoginStart event for better compatibility
* Improved authentication flow with proper error handling
* Added config.php cognito flag support for flexible authentication control
* Enhanced callback handling with token validation
* Improved logout flow with proper session cleanup
* Fixed redirect loops on authentication failure
* Better user matching and error messages