Authenticate
in package
Authentication hook class.
Base class for implementing authentication hooks in CodeIgniter. Extend this class and configure in application/config/hooks.php to add pre-controller authentication logic.
Usage:
// In application/config/hooks.php
$hook['post_controller_constructor'] = [
'class' => 'MyAuthHook',
'function' => 'authenticate',
'filename' => 'MyAuthHook.php',
'filepath' => 'hooks'
];