Is data sent to backend functions securely?

I’m implementing a custom login and I’m wondering if I send the user’s email/password to a backend function, if this information is passed in a secure (encrypted) way from the front end to the backend.

Is there a recommended way for how to securely handle user passwords and sensitive information? I’m using a third party authentication so at the moment I’m sending email/password to a backend function where the login is done using the 3rd party system.

Thanks

Passwords are encrypted, not sure about text strings, if you’re passing info to backend it is safe to do so, however keep in mind that anyone can call a backend function even with different data and see it’s return value.