@@ -330,6 +330,16 @@ def to_json(self) -> Dict[str, Any]:
330330 }
331331
332332
333+ class LoginMethodWebauthn :
334+ def __init__ (self , enabled : bool ):
335+ self .enabled = enabled
336+
337+ def to_json (self ) -> Dict [str , Any ]:
338+ return {
339+ "enabled" : self .enabled ,
340+ }
341+
342+
333343class LoginMethodThirdParty :
334344 def __init__ (self , enabled : bool , providers : List [ThirdPartyProvider ]):
335345 self .enabled = enabled
@@ -348,12 +358,14 @@ def __init__(
348358 email_password : LoginMethodEmailPassword ,
349359 passwordless : LoginMethodPasswordless ,
350360 third_party : LoginMethodThirdParty ,
361+ webauthn : LoginMethodWebauthn ,
351362 first_factors : List [str ],
352363 ):
353364 self .status = "OK"
354365 self .email_password = email_password
355366 self .passwordless = passwordless
356367 self .third_party = third_party
368+ self .webauthn = webauthn
357369 self .first_factors = first_factors
358370
359371 def to_json (self ) -> Dict [str , Any ]:
@@ -362,6 +374,7 @@ def to_json(self) -> Dict[str, Any]:
362374 "emailPassword" : self .email_password .to_json (),
363375 "passwordless" : self .passwordless .to_json (),
364376 "thirdParty" : self .third_party .to_json (),
377+ "webauthn" : self .webauthn .to_json (),
365378 "firstFactors" : self .first_factors ,
366379 }
367380
0 commit comments