The easiest way to protect your family is to be organized beforehand: Keep an up-to-date list of your bank accounts and products without writing down passwords, PINs, or OTPs, and let your family know where to find essential documents and contracts.
Steps
If you have many accounts or complex obligations, consult with a lawyer or legal advisor to organize your documents, powers of attorney, and wills to suit your situation.
Don't share your bank login details under the guise of making things easier; after your death, the proper procedures are handled through official documents and the legal status of your heirs, not by using the deceased's account as if they were still alive.