I want to ask something, while using asymmetric encryption, we encrypt the data using client's public key, so the client can decrypt the data using their private key right?
I just found tutorials for signing JWT using RSA, but I found they encrypt the data using the server private key instead of client's public key, and the server's public key shared among clients.
Is it even safe? Because if the public key is fall to the wrong hands because it's shareable, everyone can decrypt it right?
so, is it okay to sign the jwt like that?