adding pubsub token endpoint