Crate example_login

Crate example_login 

Source

Enumsยง

LoginChoice ๐Ÿ”’

Constantsยง

INITIAL_DEVICE_DISPLAY_NAME ๐Ÿ”’
The initial device name when logging in with a device for the first time.

Functionsยง

login_and_sync ๐Ÿ”’
Log in to the given homeserver and sync.
login_with_password ๐Ÿ”’
Login with a username and password.
login_with_sso ๐Ÿ”’
Login with SSO.
main ๐Ÿ”’
A simple program that adapts to the different login methods offered by a Matrix homeserver.
offer_choices_and_login ๐Ÿ”’
Offer the given choices to the user and login with the selected option.
on_room_message ๐Ÿ”’
Handle room messages by logging them.