From 1fe34a2233623a0da1d00067464e35e774cb3864 Mon Sep 17 00:00:00 2001 From: kdletters Date: Sat, 16 May 2026 22:51:45 +0800 Subject: [PATCH] fix(auth): cover sms invalid code error mapping --- server-rs/crates/module-auth/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/server-rs/crates/module-auth/src/lib.rs b/server-rs/crates/module-auth/src/lib.rs index 9aabbda4..3d628ec1 100644 --- a/server-rs/crates/module-auth/src/lib.rs +++ b/server-rs/crates/module-auth/src/lib.rs @@ -2057,6 +2057,7 @@ impl InMemoryAuthStore { fn map_sms_provider_error_to_phone_error(error: SmsProviderError) -> PhoneAuthError { match error { + SmsProviderError::InvalidVerifyCode => PhoneAuthError::InvalidVerifyCode, SmsProviderError::InvalidConfig(message) => { PhoneAuthError::SmsProviderInvalidConfig(message) }