Rust Actix Web + Magic link authentication
“Magic links” are a different approach. Instead of a single, long-lived password, the web app generates a new, unique secret code every time you want to login. The web app then sends you an email or an SMS with a link to login. This link contains this unique secret code: your short-lived shared secret.
https://blog.approveapi.com/tutorials/rust-actix-web-approveapi-magic-login-link/