Shouldn't this code go in the livefyre auth module instead?  It seems kind of confusing having it here.