arun11299/cpp-jwt

Thread Safe

Closed this issue · 2 comments

hi,

is this library thread safe? If yes which methods? Verify, generate etc...

H i @webfolderio
This library does not assume anything about thread safety. So, I would say that it is as thread safe as an std::vector.
Having said that, since the library uses OpenSSL, it would be better to make sure that you call verify/sign/decode under a mutex.

Thanks for the clarification.