Authentication methods for password-based authentication are often stored under the "amr" (Authentication Method Reference) claim. The value "pwd" indicates password authentication
you can get it like that
var authMethod = HttpContext.User.FindFirst("amr")?.Value;