load->library('Authorization_Token'); if($token['Authorization'] && !$login){ $login = $CI->my_usessionpublic->userdata("logged_in"); } if ($token && $login) { $decodedToken = $CI->authorization_token->validateToken($token, $login); return $decodedToken; } else { $decodedToken = ['status' => false, 'message' => 'Please try login again.']; return $decodedToken; } } } /* End of file auth_helper.php */ /* Location: ./system/helpers/auth_helper.php */