update nimbus-jose-jwt dependency to 2.26 and fix the affected files

I made some changes. Please review it.