Skip to content

Commit 8f70f36

Browse files
refactor(pin): rename FromStorage to FromEphemeralStorage
1 parent 9e48445 commit 8f70f36

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libwebauthn/src/webauthn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ macro_rules! handle_errors {
3232
($channel: expr, $resp: expr, $uv_auth_used: expr, $timeout: expr) => {
3333
match $resp {
3434
Err(Error::Ctap(CtapError::PINAuthInvalid))
35-
if $uv_auth_used == UsedPinUvAuthToken::FromStorage =>
35+
if $uv_auth_used == UsedPinUvAuthToken::FromEphemeralStorage =>
3636
{
3737
info!("PINAuthInvalid: Clearing auth token storage and trying again.");
3838
$channel.clear_uv_auth_token_store();

libwebauthn/src/webauthn/pin_uv_auth_token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::{PinNotSetUpdate, PinRequiredUpdate, UvUpdate};
2222
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
2323

2424
pub(crate) enum UsedPinUvAuthToken {
25-
FromStorage,
25+
FromEphemeralStorage,
2626
NewlyCalculated(Ctap2UserVerificationOperation),
2727
LegacyUV,
2828
SharedSecretOnly,
@@ -84,7 +84,7 @@ where
8484
);
8585
if let Some(uv_auth_token) = channel.get_uv_auth_token(&token_identifier) {
8686
ctap2_request.calculate_and_set_uv_auth(uv_proto.as_ref(), uv_auth_token)?;
87-
return Ok(UsedPinUvAuthToken::FromStorage);
87+
return Ok(UsedPinUvAuthToken::FromEphemeralStorage);
8888
}
8989
}
9090

0 commit comments

Comments
 (0)