arun11299 / cpp-jwt

JSON Web Token library for C++
MIT License
393 stars 112 forks source link

Thread Safe #45

Closed webfolderio closed 5 years ago

webfolderio commented 5 years ago

hi,

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

arun11299 commented 5 years ago

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.

webfolderio commented 5 years ago

Thanks for the clarification.