Is JWT.java thread-safe?

The JWT.java class says in its JavaDocs that one should create a singleton instance of this class to perform many calls in a row. I wonder if that implies that the JWT instance is actually safe to be called concurrently from many threads?

Hi @mkarg,

I will reach out to the team and get you an answer. Thank you!

Are you referring to validating a JWT? Our engineer replied that “once the verifier is constructed, it is thread-safe”. Does that answer your questions?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.