Token / personal password for room

Is there a way to implement tokens for created room?. I would need such feature because of controling exacly who can login.

Have you looked at JWT Tokens?

Thanks Freedie