src/Authentication/TokenAuthenticationProvider.php
protected function isTokenValid($tokenString)
    {
        try {
            $user = ApiToken::validateToken($tokenString);

            // We need to make the login provider understand that we're now authenticated.
            $this->logUserIn($user);
        } catch (TokenInvalidException $er) {
            throw new ForceResponseException(new TokenAuthorisationRequiredResponse($this));
        }

        return true;
    }
protected function isTokenValid($tokenString)
    {
        try {
            $user = ApiToken::validateToken($tokenString);

            // We need to make the login provider understand that we're now authenticated.
            $this->logUserIn($user);
        } catch (TokenInvalidException $er) {
            throw new ForceResponseException(new TokenAuthorisationRequiredResponse($this));
        }

        return true;
    }
protected function isTokenValid ( $ tokenString ) { try { $ user = ApiToken :: validateToken ( $ tokenString ) ; // We need to make the login provider understand that we're now authenticated. $ this -> logUserIn ( $ user ) ; } catch ( TokenInvalidException $ er ) { throw new ForceResponseException ( new TokenAuthorisationRequiredResponse ( $ this ) ) ; } return true ; }
Returns true if the token is valid.

@param $tokenString
@throws \Rhubarb\Crown\Exceptions\ForceResponseException
@return mixed
Returns true if the token is valid .