Common endpoint

As discussed in #1 .

I also upgraded jwt.