Skip to content

Commit 1e84587

Browse files
refactor(pin): rename FromStorage to FromEphemeralStorage
1 parent 7d26b98 commit 1e84587

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
@@ -47,7 +47,7 @@ macro_rules! handle_errors {
4747
($channel: expr, $resp: expr, $uv_auth_used: expr, $timeout: expr) => {
4848
match $resp {
4949
Err(Error::Ctap(CtapError::PINAuthInvalid))
50-
if $uv_auth_used == UsedPinUvAuthToken::FromStorage =>
50+
if $uv_auth_used == UsedPinUvAuthToken::FromEphemeralStorage =>
5151
{
5252
info!("PINAuthInvalid: Clearing auth token storage and trying again.");
5353
$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)