@@ -37,11 +37,15 @@ extension ErrorCode {
37
37
public static let noAuthorization = ErrorCode ( " no_authorization " )
38
38
public static let userNotFound = ErrorCode ( " user_not_found " )
39
39
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 " )
40
43
public static let flowStateNotFound = ErrorCode ( " flow_state_not_found " )
41
44
public static let flowStateExpired = ErrorCode ( " flow_state_expired " )
42
45
public static let signupDisabled = ErrorCode ( " signup_disabled " )
43
46
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 " )
45
49
public static let inviteNotFound = ErrorCode ( " invite_not_found " )
46
50
public static let badOAuthState = ErrorCode ( " bad_oauth_state " )
47
51
public static let badOAuthCallback = ErrorCode ( " bad_oauth_callback " )
@@ -96,14 +100,21 @@ extension ErrorCode {
96
100
public static let hookTimeout = ErrorCode ( " hook_timeout " )
97
101
public static let hookTimeoutAfterRetry = ErrorCode ( " hook_timeout_after_retry " )
98
102
public static let hookPayloadOverSizeLimit = ErrorCode ( " hook_payload_over_size_limit " )
103
+ public static let hookPayloadInvalidContentType = ErrorCode (
104
+ " hook_payload_invalid_content_type " )
99
105
public static let requestTimeout = ErrorCode ( " request_timeout " )
100
106
public static let mfaPhoneEnrollDisabled = ErrorCode ( " mfa_phone_enroll_not_enabled " )
101
107
public static let mfaPhoneVerifyDisabled = ErrorCode ( " mfa_phone_verify_not_enabled " )
102
108
public static let mfaTOTPEnrollDisabled = ErrorCode ( " mfa_totp_enroll_not_enabled " )
103
109
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 " )
104
114
public static let mfaVerifiedFactorExists = ErrorCode ( " mfa_verified_factor_exists " )
105
- // #nosec G101 -- Not a secret value.
115
+ //#nosec G101 -- Not a secret value.
106
116
public static let invalidCredentials = ErrorCode ( " invalid_credentials " )
117
+ public static let emailAddressNotAuthorized = ErrorCode ( " email_address_not_authorized " )
107
118
}
108
119
109
120
public enum AuthError : LocalizedError , Equatable {
0 commit comments