JWT can either be signed, encrypted or both. Please use the case of encrypted and signed for secrecy of the App2 user-id (and other details) transmitted via JWT. Please refer thisthis for more details. It's recommended to sign and then encrypt but vice versa is also possible.