Generate token using client id and secret.