Added JSON body handling in token strategy.