src/Antarctica/LaravelTokenAuth/Filter/AuthFilter.php
private function isUserTokenAuthenticated()
    {
        try
        {
            $token = $this->TokenUser->getTokenInterface()->get();
            $this->TokenUser->validate($token);
        }
        catch (Exception $exception)
        {
            // We will re-throw this error later if no other authentication types give a successful result
            return $exception;
        }

        return true;
    }
private function isUserTokenAuthenticated()
    {
        try
        {
            $token = $this->TokenUser->getTokenInterface()->get();
            $this->TokenUser->validate($token);
        }
        catch (Exception $exception)
        {
            // We will re-throw this error later if no other authentication types give a successful result
            return $exception;
        }

        return true;
    }
private function isUserTokenAuthenticated ( ) { try { $ token = $ this -> TokenUser -> getTokenInterface ( ) -> get ( ) ; $ this -> TokenUser -> validate ( $ token ) ; } catch ( Exception $ exception ) { // We will re-throw this error later if no other authentication types give a successful result return $ exception ; } return true ; }
Validates an authentication token if provided, otherwise returns an exception that can be re-thrown later.
@return bool|Exception
Validates an authentication token if provided otherwise returns an exception that can be re - thrown later .