This repository was archived by the owner on Jul 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " proton-api-rs"
33authors = [" Leander Beernaert <lbb-dev@pm.me>" ]
4- version = " 0.10.1 "
4+ version = " 0.10.2 "
55edition = " 2021"
66license = " AGPL-3.0-only"
77description = " Unofficial implemention of proton REST API in rust"
@@ -48,4 +48,4 @@ required-features = ["http-reqwest"]
4848
4949[[example ]]
5050name = " user_id_sync"
51- required-features = [" http-ureq" ]
51+ required-features = [" http-ureq" ]
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ fn validate_server_proof(
229229 TFAStatus :: None => Ok ( SessionType :: Authenticated ( session) ) ,
230230 TFAStatus :: Totp => Ok ( SessionType :: AwaitingTotp ( TotpSession ( session) ) ) ,
231231 TFAStatus :: FIDO2 => Err ( LoginError :: Unsupported2FA ( TwoFactorAuth :: FIDO2 ) ) ,
232+ TFAStatus :: TotpOrFIDO2 => Ok ( SessionType :: AwaitingTotp ( TotpSession ( session) ) ) ,
232233 }
233234}
234235
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ pub enum TFAStatus {
104104 None = 0 ,
105105 Totp = 1 ,
106106 FIDO2 = 2 ,
107+ TotpOrFIDO2 = 3 ,
107108}
108109
109110#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments