To allow a user login with a magic URL, you need to implement a custom token provider. I'll show you how to add a custom token provider to authenticate a user with a link.
Create a class named PasswordlessLoginProvider in your *.Web project.
PasswordlessLoginProvider.cs