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:

But in this page, it only talks about changing the environment variables to enable jwt authentication:

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