Versions in this module Expand all Collapse all v6 v6.2.0 Dec 3, 2025 v6.1.0 Nov 21, 2025 v6.0.1 Nov 18, 2025 v6.0.0 Nov 6, 2025 Changes in this version + const EmailVerificationRequiredCode + const MFAChallengeCode + const MFAEnrollmentCode + const OrganizationAuthenticationMethodsRequiredCode + const OrganizationSelectionRequiredCode + const SSORequiredCode + func IsBadRequest(err error) bool + func TryGetHTTPError(r *http.Response) error + type AuthenticationFactor struct + ID string + Type FactorType + type EmailVerificationRequiredError struct + Code string + Email string + EmailVerificationID string + Message string + PendingAuthenticationToken string + func (e EmailVerificationRequiredError) Error() string + type ErrorWithMessage struct + Message string + type FactorType string + const SMS + const TOTP + type FieldError struct + Code string + Field string + type HTTPError struct + AuthMethods map[string]bool + AuthenticationFactors []AuthenticationFactor + Code int + ConnectionIDs []string + EmailVerificationID string + ErrorCode string + ErrorDescription string + Errors []string + FieldErrors []FieldError + Message string + Organizations []PendingAuthenticationOrganizationInfo + PendingAuthenticationToken string + RawBody string + RequestID string + SSOConnectionIDs []string + Status string + User *common.User + func (e HTTPError) Error() string + type MFAChallengeError struct + AuthenticationFactors []AuthenticationFactor + Code string + Message string + PendingAuthenticationToken string + User User + func (e MFAChallengeError) Error() string + type MFAEnrollmentError struct + Code string + Message string + PendingAuthenticationToken string + User User + func (e MFAEnrollmentError) Error() string + type OrganizationAuthenticationMethodsRequiredError struct + AuthMethods map[string]bool + Email string + ErrorCode string + ErrorDescription string + PendingAuthenticationToken string + SSOConnectionIDs []string + func (e OrganizationAuthenticationMethodsRequiredError) Error() string + type OrganizationSelectionRequiredError struct + Code string + Message string + Organizations []PendingAuthenticationOrganizationInfo + PendingAuthenticationToken string + User User + func (e OrganizationSelectionRequiredError) Error() string + type PendingAuthenticationOrganizationInfo struct + ID string + Name string + type ResponseErrors []string + func (e *ResponseErrors) UnmarshalJSON(data []byte) error + type SSORequiredError struct + ConnectionIDs []string + Email string + ErrorCode string + ErrorDescription string + PendingAuthenticationToken string + func (e SSORequiredError) Error() string + type User = common.User Other modules containing this package github.com/workos/workos-go github.com/workos/workos-go/v2 github.com/workos/workos-go/v3 github.com/workos/workos-go/v4 github.com/workos/workos-go/v5