Middleware handlers for passwordless and password login strategies