Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread Safety #20

Closed
webfolderio opened this issue Apr 25, 2019 · 2 comments
Closed

Thread Safety #20

webfolderio opened this issue Apr 25, 2019 · 2 comments

Comments

@webfolderio
Copy link
Contributor

Once done you can use it to verify any number of tokens. Since verifing does not modify the verifier you can reuse it as often as you like.

Does it mean that verify method is thread-safe?

@Thalhammer
Copy link
Owner

Thalhammer commented Apr 25, 2019

Yes*

*Assuming you do not call any other method concurrently (e.g. modify it). If you only create the verifier from one thread and then call verify from multiple threads you should be fine.

@webfolderio
Copy link
Contributor Author

Thanks for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants