fix(auth): cover sms invalid code error mapping

This commit is contained in:
2026-05-16 22:51:45 +08:00
parent 4f6c97ae92
commit 1fe34a2233

View File

@@ -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)
}