@@ -37,15 +37,19 @@ extension ErrorCode {
3737 public static let noAuthorization = ErrorCode ( " no_authorization " )
3838 public static let userNotFound = ErrorCode ( " user_not_found " )
3939 public static let sessionNotFound = ErrorCode ( " session_not_found " )
40+ public static let sessionExpired = ErrorCode ( " session_expired " )
41+ public static let refreshTokenNotFound = ErrorCode ( " refresh_token_not_found " )
42+ public static let refreshTokenAlreadyUsed = ErrorCode ( " refresh_token_already_used " )
4043 public static let flowStateNotFound = ErrorCode ( " flow_state_not_found " )
4144 public static let flowStateExpired = ErrorCode ( " flow_state_expired " )
4245 public static let signupDisabled = ErrorCode ( " signup_disabled " )
4346 public static let userBanned = ErrorCode ( " user_banned " )
44- public static let providerEmailNeedsVerification = ErrorCode ( " provider_email_needs_verification " )
47+ public static let providerEmailNeedsVerification = ErrorCode (
48+ " provider_email_needs_verification " )
4549 public static let inviteNotFound = ErrorCode ( " invite_not_found " )
4650 public static let badOAuthState = ErrorCode ( " bad_oauth_state " )
4751 public static let badOAuthCallback = ErrorCode ( " bad_oauth_callback " )
48- public static let oauthProviderNotSupported = ErrorCode ( " oauth_provider_not_supported " )
52+ public static let oAuthProviderNotSupported = ErrorCode ( " oauth_provider_not_supported " )
4953 public static let unexpectedAudience = ErrorCode ( " unexpected_audience " )
5054 public static let singleIdentityNotDeletable = ErrorCode ( " single_identity_not_deletable " )
5155 public static let emailConflictIdentityNotDeletable = ErrorCode (
@@ -96,14 +100,21 @@ extension ErrorCode {
96100 public static let hookTimeout = ErrorCode ( " hook_timeout " )
97101 public static let hookTimeoutAfterRetry = ErrorCode ( " hook_timeout_after_retry " )
98102 public static let hookPayloadOverSizeLimit = ErrorCode ( " hook_payload_over_size_limit " )
103+ public static let hookPayloadInvalidContentType = ErrorCode (
104+ " hook_payload_invalid_content_type " )
99105 public static let requestTimeout = ErrorCode ( " request_timeout " )
100106 public static let mfaPhoneEnrollDisabled = ErrorCode ( " mfa_phone_enroll_not_enabled " )
101107 public static let mfaPhoneVerifyDisabled = ErrorCode ( " mfa_phone_verify_not_enabled " )
102108 public static let mfaTOTPEnrollDisabled = ErrorCode ( " mfa_totp_enroll_not_enabled " )
103109 public static let mfaTOTPVerifyDisabled = ErrorCode ( " mfa_totp_verify_not_enabled " )
110+ public static let mfaWebAuthnEnrollDisabled = ErrorCode (
111+ " mfa_webauthn_enroll_not_enabled " )
112+ public static let mfaWebAuthnVerifyDisabled = ErrorCode (
113+ " mfa_webauthn_verify_not_enabled " )
104114 public static let mfaVerifiedFactorExists = ErrorCode ( " mfa_verified_factor_exists " )
105- // #nosec G101 -- Not a secret value.
115+ //#nosec G101 -- Not a secret value.
106116 public static let invalidCredentials = ErrorCode ( " invalid_credentials " )
117+ public static let emailAddressNotAuthorized = ErrorCode ( " email_address_not_authorized " )
107118}
108119
109120public enum AuthError : LocalizedError , Equatable {
0 commit comments