Replaced manual MatchRegex check with GetAuthIDType