-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
497 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package api | ||
|
||
type ErrorCode = string | ||
|
||
const ( | ||
ErrorCodeValidationFailed ErrorCode = "validation_failed" | ||
ErrorCodeBadJSON ErrorCode = "bad_json" | ||
ErrorCodeEmailExists ErrorCode = "email_exists" | ||
ErrorCodePhoneExists ErrorCode = "phone_exists" | ||
ErrorCodeBadJWT ErrorCode = "bad_jwt" | ||
ErrorCodeNotAdmin ErrorCode = "not_admin" | ||
ErrorCodeNoAuthorization ErrorCode = "no_authorization" | ||
ErrorCodeUserNotFound ErrorCode = "user_not_found" | ||
ErrorCodeSessionNotFound ErrorCode = "session_not_found" | ||
ErrorCodeFlowStateNotFound ErrorCode = "flow_state_not_found" | ||
ErrorCodeFlowStateExpired ErrorCode = "flow_state_expired" | ||
ErrorCodeSignupDiabled ErrorCode = "signup_diabled" | ||
ErrorCodeUserBanned ErrorCode = "user_banned" | ||
ErrorCodeOverEmailSendRate ErrorCode = "over_email_send_rate" | ||
ErrorCodeOverSMSSendRate ErrorCode = "over_sms_send_rate" | ||
ErrorCodeProviderEmailNeedsVerification ErrorCode = "provider_email_needs_verification" | ||
ErrorCodeInviteNotFound ErrorCode = "invite_not_found" | ||
ErrorCodeBadOAuthState ErrorCode = "bad_oauth_state" | ||
ErrorCodeBadOAuthCallback ErrorCode = "bad_oauth_callback" | ||
ErrorCodeUnsupportedOAuthProvider ErrorCode = "unsupported_oauth_provider" | ||
ErrorCodeUnexpectedAudience ErrorCode = "unexpected_audience" | ||
ErrorCodeLastIdentityNotDeletable ErrorCode = "last_identity_not_deletable" | ||
ErrorCodeEmailConflictIdentityNotDeletable ErrorCode = "email_conflict_identity_not_deletable" | ||
ErrorCodeIdentityAlreadyExists ErrorCode = "identity_already_exists" | ||
ErrorCodeEmailProviderDisabled ErrorCode = "email_provider_disabled" | ||
ErrorCodePhoneProviderDisabled ErrorCode = "phone_provider_disabled" | ||
ErrorCodeTooManyEnrolledMFAFactors ErrorCode = "too_many_enrolled_mfa_factors" | ||
ErrorCodeMFAFactorNameConflict ErrorCode = "mfa_factor_name_conflict" | ||
ErrorCodeMFAFactorNotFound ErrorCode = "mfa_factor_not_found" | ||
ErrorCodeMFAIPAddressMismatch ErrorCode = "mfa_ip_address_mismatch" | ||
ErrorCodeMFAChallengeExpired ErrorCode = "mfa_challenge_expired" | ||
ErrorCodeMFAVerificationFailed ErrorCode = "mfa_verification_failed" | ||
ErrorCodeMFAVerificationRejected ErrorCode = "mfa_verification_rejected" | ||
ErrorCodeInsufficientAAL ErrorCode = "insufficient_aal" | ||
ErrorCodeCaptchaFailed ErrorCode = "captcha_failed" | ||
ErrorCodeSAMLProviderDisabled ErrorCode = "saml_provider_disabled" | ||
ErrorCodeManualLinkingDisabled ErrorCode = "manual_linking_disabled" | ||
ErrorCodeSMSSendFailed ErrorCode = "sms_send_failed" | ||
ErrorCodeEmailNotConfirmed ErrorCode = "email_not_confirmed" | ||
ErrorCodePhoneNotConfirmed ErrorCode = "phone_not_confirmed" | ||
ErrorCodeReauthNonceMissing ErrorCode = "reauth_nonce_missing" | ||
ErrorCodeSAMLRelayStateNotFound ErrorCode = "saml_relay_state_not_found" | ||
ErrorCodeSAMLRelayStateExpired ErrorCode = "saml_relay_state_expired" | ||
ErrorCodeSAMLIdPNotFound ErrorCode = "saml_idp_not_found" | ||
ErrorCodeSAMLAssertionNoUserID ErrorCode = "saml_assertion_no_user_id" | ||
ErrorCodeSAMLAssertionNoEmail ErrorCode = "saml_assertion_no_email" | ||
ErrorCodeUserAlreadyExists ErrorCode = "user_already_exists" | ||
ErrorCodeSSOProviderNotFound ErrorCode = "sso_provider_not_found" | ||
ErrorCodeSAMLMetadataFetchFailed ErrorCode = "saml_metadata_fetch_failed" | ||
ErrorCodeSAMLIdPAlreadyExists ErrorCode = "saml_idp_already_exists" | ||
ErrorCodeSSODomainAlreadyExists ErrorCode = "sso_domain_already_exists" | ||
ErrorCodeSAMLEntityIDMismatch ErrorCode = "saml_entity_id_mismatch" | ||
ErrorCodeConflict ErrorCode = "conflict" | ||
ErrorCodeProviderDisabled ErrorCode = "provider_disabled" | ||
ErrorCodeUserSSOManaged ErrorCode = "user_sso_managed" | ||
ErrorCodeReauthenticationNeeded ErrorCode = "reauthentication_needed" | ||
ErrorCodeSamePassword ErrorCode = "same_password" | ||
ErrorCodeReauthenticationNotValid ErrorCode = "reauthentication_not_valid" | ||
ErrorCodeOTPExpired ErrorCode = "otp_expired" | ||
) |
Oops, something went wrong.