public function generateTokenById($id)
    {
        if (!is_null($user = $this->provider->retrieveById($id))) {
            return $this->jwt->fromUser($user);
        }
    }
public function generateTokenById($id)
    {
        if (!is_null($user = $this->provider->retrieveById($id))) {
            return $this->jwt->fromUser($user);
        }
    }
public function generateTokenById ( $ id ) { if ( ! is_null ( $ user = $ this -> provider -> retrieveById ( $ id ) ) ) { return $ this -> jwt -> fromUser ( $ user ) ; } }
Generate new token by ID.

@param mixed $id

@return string|null
Generate new token by ID .