-beta.*
suffix, for example, 3.2.0-beta.1
. For more information on how to use the beta versions, refer to the README in the GitHub repository.The v5 release includes the following breaking change:
UpdateUserOpts.Metadata
field type changed from map[string]string
to map[string]*string
(introduced in PR #457)nil
to remove them server-side// v4 (old)
import "github.com/workos/workos-go/v4/pkg/usermanagement"
opts := usermanagement.UpdateUserOpts{
User: "user_123",
Metadata: map[string]string{
"department": "Engineering",
},
}
// v5 (new)
import "github.com/workos/workos-go/v5/pkg/usermanagement"
dept := "Engineering"
opts := usermanagement.UpdateUserOpts{
User: "user_123",
Metadata: map[string]*string{
"department": &dept,
"old_field": nil, // Removes this field
},
}
Full Changelog: https://github.com/workos/workos-go/compare/v4.46.1...v5.0.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.46.0...v4.46.1
Added structured authentication error handling for AuthKit User Management API
New error types for authentication scenarios:
Enhanced error parsing with user data, pending tokens, and organization info
Backwards compatible - existing error handling unchanged
Type-safe using standard Go errors.As() pattern
Full Changelog: https://github.com/workos/workos-go/compare/v4.43.0...v4.44.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.41.0...v4.42.0
ListIdentitiesResult
as array (https://github.com/workos/workos-go/pull/433)Full Changelog: https://github.com/workos/workos-go/compare/v4.40.0...v4.41.0
Email
to UpdateUserOpts
by @cmatheson in https://github.com/workos/workos-go/pull/429omitempty
to ExternalID field by @rarevalo13 in https://github.com/workos/workos-go/pull/428Full Changelog: https://github.com/workos/workos-go/compare/v4.39.0...v4.40.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.38.0...v4.39.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.37.0...v4.38.0
CustomAttributes
field to SSO Profile (#422)Full Changelog: https://github.com/workos/workos-go/compare/v4.36.0...v4.37.0
password_reset.succeeded
event type (https://github.com/workos/workos-go/pull/419)Full Changelog: https://github.com/workos/workos-go/compare/v4.35.0...v4.36.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.33.0...v4.35.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.32.0...v4.33.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.31.0...v4.32.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.30.0...v4.31.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.29.0...v4.30.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.28.0...v4.29.0
ReturnTo
option to GetLogoutURLOpts
(#390)Full Changelog: https://github.com/workos/workos-go/compare/v4.27.0...v4.28.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.26.0...v4.27.0
AuthenticationMethod
to AuthenticateResponse
. by @dezlitz in https://github.com/workos/workos-go/pull/366Full Changelog: https://github.com/workos/workos-go/compare/v4.25.0...v4.26.0
Full Changelog: https://github.com/workos/workos-go/compare/v4.24.0...v4.25.0
OrganizationID
, State
, VerificationToken
, and VerificationStrategy
fields to OrganizationDomain
struct (https://github.com/workos/workos-go/pull/376)Full Changelog: https://github.com/workos/workos-go/compare/v4.22.0...v4.22.1
Full Changelog: https://github.com/workos/workos-go/compare/v4.21.1...v4.22.0
Added
ConvertSchemaToResourceTypes
and ConvertResourceTypesToSchema
to FGA module (#364)