serverpod_auth_sms library
Classes
- PhoneIdCrypto
- Encrypted phone storage.
- PhoneIdCryptoAttachRowRepository
- PhoneIdCryptoInclude
- PhoneIdCryptoIncludeList
- PhoneIdCryptoRepository
- PhoneIdCryptoStore
- PhoneIdCryptoTable
- PhoneIdCryptoUpdateTable
- PhoneIdHash
- Phone hash storage.
- PhoneIdHashAttachRowRepository
- PhoneIdHashInclude
- PhoneIdHashIncludeList
- PhoneIdHashRepository
- PhoneIdHashStore
- PhoneIdHashTable
- PhoneIdHashUpdateTable
- PhoneIdStore
- SmsAccount
- SMS account credentials.
- SmsAccountAttachRowRepository
- SmsAccountCreationResult
- SmsAccountInclude
- SmsAccountIncludeList
- SmsAccountRepository
- SmsAccountRequest
- Pending SMS registration request.
- SmsAccountRequestAttachRowRepository
- SmsAccountRequestDetachRowRepository
- SmsAccountRequestInclude
- SmsAccountRequestIncludeList
- SmsAccountRequestRepository
- SmsAccountRequestTable
- SmsAccountRequestUpdateTable
- SmsAccountTable
- SmsAccountUpdateTable
- SmsAuthUiBaseEndpoint
- SmsAuthUiConfig
- SmsAuthUiConfigStore
- SmsBindAndLoginAvailability
- SmsBindAndLoginExecutionResult
- SmsBindRequest
- Pending SMS phone bind request.
- SmsBindRequestAttachRowRepository
- SmsBindRequestDetachRowRepository
- SmsBindRequestInclude
- SmsBindRequestIncludeList
- SmsBindRequestRepository
- SmsBindRequestTable
- SmsBindRequestUpdateTable
- SmsIdp
- SmsIdpAccountCreationUtil
- SmsIdpBaseEndpoint
- SmsIdpBindUtil
- SmsIdpConfig
- SmsIdpConfigFromPasswords
- SmsIdpLoginUtil
- SmsIdpPasswordResetUtil
- SmsIdpUtils
- SmsLoginRequest
- Pending SMS login request.
- SmsLoginRequestAttachRowRepository
- SmsLoginRequestDetachRowRepository
- SmsLoginRequestInclude
- SmsLoginRequestIncludeList
- SmsLoginRequestRepository
- SmsLoginRequestTable
- SmsLoginRequestUpdateTable
- SmsPasswordResetRequest
- 待完成的短信密码重置请求。
- SmsPasswordResetRequestAttachRowRepository
- SmsPasswordResetRequestDetachRowRepository
- SmsPasswordResetRequestInclude
- SmsPasswordResetRequestIncludeList
- SmsPasswordResetRequestRepository
- SmsPasswordResetRequestTable
- SmsPasswordResetRequestUpdateTable
- SmsPhoneBindBaseEndpoint
- SmsRateLimit
- SMS 速率限制配置。
- SmsSamePasswordBanner
- UI hint for same-password reset banner.
- SmsVerifyBindResultV2
- SMS bind-code verification result (V2, conflict-aware).
- SmsVerifyLoginResult
- SMS 验证码验证结果
- SmsVerifyPasswordResetResult
- 短信密码重置验证码验证结果。
Enums
- SmsAccountRequestExceptionReason
- The reason for why the SMS registration request was rejected.
- SmsBindAndLoginDisabledReason
- Why bindAndLogin is disabled in conflict dialog.
- SmsBindFinishDecision
- User decision for phone-bind conflict.
- SmsLoginExceptionReason
- The reason for why the SMS login was rejected.
- SmsPasswordResetBlockedReason
- 短信密码重置在验码成功后的拦截原因。
- SmsPasswordResetExceptionReason
- 短信密码重置被拒绝的原因。
- SmsPhoneBindExceptionReason
- The reason for why the phone bind request was rejected.
Extensions
- SmsIdpGetter on AuthServices
Functions
-
defaultRegistrationPasswordValidationFunction(
String password) → bool -
defaultSmsVerificationCodeGenerator(
{int length = 6}) → String -
normalizePhoneNumber(
String input) → String
Typedefs
-
AfterAccountCreatedFunction
= FutureOr<
void> Function(Session session, {required UuidValue authUserId, required Transaction? transaction}) -
AfterPhoneBoundFunction
= FutureOr<
void> Function(Session session, {required UuidValue authUserId, required Transaction? transaction}) -
ExecuteBindAndLoginFunction
= FutureOr<
SmsBindAndLoginExecutionResult> Function(Session session, {required UuidValue conflictAuthUserId, required UuidValue currentAuthUserId, required String phoneHash, required Transaction? transaction}) - PasswordValidationFunction = bool Function(String password)
-
ResolveBindAndLoginAvailabilityFunction
= FutureOr<
SmsBindAndLoginAvailability> Function(Session session, {required UuidValue conflictAuthUserId, required UuidValue currentAuthUserId, required String phoneHash, required Transaction? transaction}) -
SendSmsVerificationCodeFunction
= FutureOr<
void> Function(Session session, {required String phone, required UuidValue requestId, required Transaction? transaction, required String verificationCode})
Exceptions / Errors
- PhoneAlreadyBoundException
- PhoneRebindNotAllowedException
- SmsAccountAlreadyRegisteredException
- SmsAccountRequestException
- Exception to be thrown if SMS registration request fails.
- SmsLoginException
- Exception to be thrown if SMS login fails.
- SmsPasswordResetException
- SmsPhoneBindException
- Exception to be thrown if phone bind fails.