If you use Firefox to manage passwords, make sure to Enable the Master Password, otherwise anyone with access to your Browser (yourself included), can view saved passwords without any authentication. Alternatively you could use a secure password manager such as; LastPass, Bitwarden etc.
For example;
Image: Viewing saved passwords in Chromium-based browsers requires users to authenticate themselves.