Forcing users to only use passwordless auth
-
Is it possible to force passwordless as the only option for specific users when they log in?
-
Not through a FusionAuth policy, but you can do that in the login template if you want to filter it by email domain or something like that.
If you have not let the user set their password, then passwordless will implicitly be the only path that will work for them (assuming you don’t offer them social login buttons).
If you pass the user’s email on the redirect to FusionAuth as
&loginId=test@example.com
, that value will be available to you in the template and you can then key off, parse the domain, or whatever - and use that to hide or show whatever you like.