Docker with JWT not working, depends on how you look at it

Hello all how are you?

I struggled with authenticating using JWT. so I reinstalled jitsi with docker.
now my client can connect also when the JWT is incorrect.

Please help
Thank you for your expertise.

.env file config:

ENABLE_AUTH=1
ENABLE_GUESTS=0
AUTH_TYPE=jwt
JWT_ALLOW_EMPTY=0
JWT_ENABLE_TOKEN_AUTH=1
JWT_APP_ID=my_app_id
JWT_APP_SECRET=my_app_secret 

generating

    def generate_options(self, room: str, name: str, avatar_link: str):
        assert room
        return {
            'domain': self.app_domain,
            'options': {
                'roomName': room,
                'noSSL': not self.mode_production,
                'userInfo': {
                    'displayName': name
                },
                'width': '100%',
                'height': '100%',
                'jwt': self._generate_token(room, name, avatar_link)
            }
        }

    def _generate_token(self, room: str, name: str, avatar_link: str):
        msg = {
            "context": {
                "user": {
                    "avatar": avatar_link,
                    "name": name,
                }
            },
            "aud": self.app_id,
            "iss": self.app_id,
            "sub": self.app_domain,
            "room": room,
            "exp": (datetime.utcnow() + timedelta(hours=1)).timestamp()
        }
        return jwt.encode(msg, 'yada yada incorrect secret', algorithm='HS256').decode("utf-8")

any help pleas pelase