I have 2 ASP MVC Core web applications (referencing Microsoft.AspNetCore.App, Version 2.1.1
). Both running locally in Visual Studio on my machine.
- If I call inside 1st web application
var code = await _userManager.GenerateEmailConfirmationTokenAsync(user);
- and then on the 2nd web application
var result = await _userManager.ConfirmEmailAsync(user, code);
I got the result "Invalid token."
.
I've read ASP.NET Core 2.0 - ASP.NET Identity - Invalid Token Error but my issue is different. It doesn't work locally, too!
(I guess setting the machineKey
wouldn't help because both applications are running on my local machine. And even if I have no web.config
locally.)