Turn off two-step verification and if you lose the app
Turn off verification in Security (other sessions close and trusted devices are forgotten); if you lose the app there are no automatic recovery codes.
Turn it off
Settings → Security → Two-step verification, press Disable.
Confirm: Your account will stop asking for a code at sign-in. Other sessions will also be closed and every trusted device will be forgotten.
You'll see Two-step verification disabled. Keeping it on protects your account if someone gets your password.
If you lose your authenticator app
There are no automatic recovery codes.
If you still have a session open on some device, go to Security and disable the verification; then enable it again with your new app.
If you can't sign in, write from the Contact page with your account's email.
To avoid it, keep the manual key somewhere safe when enabling the verification.