You can share passwords using Apple’s iCloud Keychain password manager so that other Apple users can log in using the same credentials. This is far more secure and convenient than copying and pasting login details into a message window.
Source : How to Share Passwords and Passkeys on iPhone, iPad, and Mac