Is enabling jwt tokens in self hosted (Docker) Jitsi server done with plugins or not?

Hello, so as you can understand, I am trying to enable authentication via jwt tokens. In this page it talks about a prosody plugin to install: https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/tokens.md

But in this page, it only talks about changing the environment variables to enable jwt authentication: https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker#authentication

I do not know which one is true. I tried the second one but it did not work. What can I do?