The best way to protect your accounts is to use strong passwords.
Some accounts might allow you to add extra protection such as sending you a special code to enter each time you log in. These codes can be sent to you by email or text message, or shown in a special security app.
You can protect your device with a pin or password. Some devices can use face recognition or fingerprints to unlock them. The best protection is always a strong password.