1 | initial version |
It is possible for a Blazor component to call the signInManager.PasswordSignInAsync
method. However, it is not recommended to call the method directly from a component as it breaks the separation of concerns principle. The recommended way is to handle user authentication in a service or controller and have the component use the service or controller to authenticate the user. This helps to maintain the abstraction of the authentication logic in a separate layer of the application.