Beta Versions
Certain WorkOS features may be available only in the beta version of the SDK. Beta versions have the-beta.* suffix, for example,
3.2.0-beta.1. For more information on how to use beta
versions, refer to the README in the GitHub repository.
Releases
v9.3.0
Latest- https://github.com/workos/workos-go/pull/566" rel="noreferrer" target="_blank">#566 feat(generated)!: regenerate from spec (11 changes)
⚠️ Breaking
- organization_membership:
- Changed response of
UserManagementOrganizationMembership.listfromUserOrganizationMembershiptoUserOrganizationMembershipList - pipes:
- SDK surface change:
PipeService.CreateDataIntegrationTokenwas renamed toPipeService.GetAccessToken - user_management:
- Changed response of
UserManagementInvitations.listfromUserInvitetoUserInviteList
Features
- authorization:
- Added model
ReplaceGroupRoleAssignmentEntry - Added model
ReplaceGroupRoleAssignments - Added model
DeleteGroupRoleAssignmentsByCriteria - Added endpoint
POST /authorization/groups/{group_id}/role_assignments - Added endpoint
PUT /authorization/groups/{group_id}/role_assignments - Added endpoint
DELETE /authorization/groups/{group_id}/role_assignments - Added endpoint
GET /authorization/groups/{group_id}/role_assignments/{role_assignment_id} - Added endpoint
DELETE /authorization/groups/{group_id}/role_assignments/{role_assignment_id} - client:
- Added model
ClientApiToken - Added model
ClientApiTokenResponse - Added service
Client - connect:
- Added
auth_methodtoConnectedAccount - Added
api_key_last_4toConnectedAccount - Added enum
ConnectedAccountAuthMethod - groups:
- Added model
CreateGroupRoleAssignment - Added model
GroupRoleAssignment - Added model
GroupRoleAssignmentList - Added model
GroupRoleAssignmentResource - organization_membership:
- Added model
UserOrganizationMembershipList - Added model
UserOrganizationMembershipListListMetadata - pipes:
- Added model
DataIntegrationCredentials - Added model
DataIntegrationConfigurationResponse - Added model
DataIntegrationConfigurationListResponse - Added model
ConfigureDataIntegrationBody - Added
auth_methodstoDataIntegrationsListResponseData - Added
auth_methodtoDataIntegrationsListResponseDataConnectedAccount - Added
api_key_last_4toDataIntegrationsListResponseDataConnectedAccount - Added enum
DataIntegrationCredentialsCredentialsType - Added enum
DataIntegrationsListResponseDataAuthMethods - Added enum
DataIntegrationsListResponseDataConnectedAccountAuthMethod - Added service
PipesProvider - user_management:
- Added model
UserInviteList - Added model
UserInviteListListMetadata - Made
AuthorizationCodeSessionAuthenticateRequest.client_secretoptional - Made
RefreshTokenSessionAuthenticateRequest.client_secretoptional - widgets:
- Added
widgets:pipes:managetoWidgetSessionTokenScopes
v9.2.0
Bug Fixes
- renovate: explicitly enable minor and patch updates (https://github.com/workos/workos-go/issues/556" rel="noreferrer" target="_blank">#556) (https://github.com/workos/workos-go/commit/8f31158181395c86a5805988740444e73b8fcc92" rel="noreferrer" target="_blank">8f31158)
- https://github.com/workos/workos-go/pull/563" rel="noreferrer" target="_blank">#563 feat(generated): regenerate from spec (5 changes)
⚠️ Breaking
- api_keys:
- Made
expires_atrequired in API key models - directory_sync:
- Removed model
DsyncDeactivated - Removed model
DsyncDeactivatedData - Removed model
DsyncDeactivatedDataDomain - Removed enum
DsyncDeactivatedDataType - Removed enum
DsyncDeactivatedDataState - radar:
- Removed
domain_sign_up_rate_limitfromRadarStandaloneResponseControl - user_management:
- Removed
return_tofromRevokeSession
Features
- api_keys:
- Added model
ExpireApiKey - Added model
ApiKeyUpdated - Added model
ApiKeyUpdatedData - Added model
ApiKeyUpdatedDataOwner - Added model
UserApiKeyUpdatedDataOwner - Added model
ApiKeyUpdatedDataPreviousAttribute - Added endpoint
POST /api_keys/{id}/expire - audit_logs:
- Added
SnowflaketoAuditLogConfigurationLogStreamType - connect:
- Added
nametoUserObject - directory_sync:
- Added model
DsyncTokenCreated - Added model
DsyncTokenCreatedData - Added model
DsyncTokenRevoked - Added model
DsyncTokenRevokedData - user_management:
- Added
nameto user management models - webhooks:
- Added
api_key.updatedtoCreateWebhookEndpointEvents - Added
api_key.updatedtoUpdateWebhookEndpointEvents
v9.1.0
Features
- add generated events constants package (https://github.com/workos/workos-go/issues/560" rel="noreferrer" target="_blank">#560) (https://github.com/workos/workos-go/commit/4a57b0de2653001bd1c7abe7c8806626cada35e8" rel="noreferrer" target="_blank">4a57b0d)
Bug Fixes
- v9 module path release workflow (https://github.com/workos/workos-go/issues/559" rel="noreferrer" target="_blank">#559) (https://github.com/workos/workos-go/commit/b89d38d5fe3959a23a6f348424582513ca4bccbc" rel="noreferrer" target="_blank">b89d38d)
- https://github.com/workos/workos-go/pull/554" rel="noreferrer" target="_blank">#554 feat(generated)!: regenerate from spec (11 changes)
⚠️ Breaking
- audit_logs: Rename audit log model types (breaking)
- Rename
AuditLogExportJSONtoAuditLogExport - Rename
AuditLogsRetentionJSONtoAuditLogsRetention - Rename
AuditLogActionJSONtoAuditLogAction - Rename
AuditLogExportJSONStatetoAuditLogExportState - Update method signatures to use new type names
- authorization: Remove
Searchparameter fromAuthorizationListResourcesParams - radar: Remove device_fingerprint and bot_score parameters
- Remove
DeviceFingerprintfield fromRadarCreateAttemptParams - Remove
BotScorefield fromRadarCreateAttemptParams - Remove enum values
CREDENTIAL_STUFFINGandIP_SIGN_UP_RATE_LIMITfromRadarStandaloneResponseControl - Remove and update enum values in
RadarStandaloneAssessRequestAction(keep onlySignUpandSignInwith updated values) - user_management: Refactor organization membership to dedicated service
- Move organization membership operations from
UserManagementServiceto newOrganizationMembershipService - Remove
ListOrganizationMemberships,CreateOrganizationMembership,GetOrganizationMembership,UpdateOrganizationMembership,DeleteOrganizationMembership,DeactivateOrganizationMembership,ReactivateOrganizationMembershipmethods from user management - Remove role helper types (
UserManagementRole,UserManagementRoleSingle,UserManagementRoleMultiple) from user management (now in organization_membership) - Add
ExpiresAtfield toUserManagementCreateAPIKeyParams - Remove
UserManagementOrganizationMembershipGroups()client accessor (replaced byOrganizationMembership()) - Remove
UserManagementOrganizationMembershipGroupServicetype andListOrganizationMembershipGroupsmethod - vault: Rewrite vault service with breaking API changes
- Remove
KeyContextstruct (replaced bymap[string]string) - Remove
DataKeyPairstruct (replaced byCreateDataKeyResponse) - Remove
DataKeystruct (replaced byDecryptResponse) - Remove hand-written types:
VaultObject,VaultObjectDigest,VaultObjectVersion,VaultListObjectsParams,VaultListObjectsResponse,VaultCreateObjectParams,VaultUpdateObjectParams,VaultDecryptDataKeyParams - Rename methods:
ListObjects→ListKv,CreateObject→CreateKv,ReadObject→GetKv,ReadObjectByName→GetName,UpdateObject→UpdateKv,DeleteObject→DeleteKv,ListObjectVersions→ListKvVersions,DescribeObject→ListKvMetadata,DecryptDataKey→CreateDecrypt - Change
LocalEncryptsignature: second param fromDataKeyPairtoCreateDataKeyResponse - Change
LocalDecryptsignature: second param fromDataKeytoDecryptResponse - Change
Encryptmethod:KeyContextparam type tomap[string]string - Change
VaultEncryptResult.KeyContextfield type fromKeyContexttomap[string]string
Features
- api_keys: Add expires_at field to API key models
- Add optional
expires_atfield toAPIKeysCreateOrganizationAPIKeyParams - Add optional
expires_atfield toUserManagementCreateAPIKeyParams - Add optional
expires_atfield toAPIKey,APIKeyCreatedData,APIKeyRevokedData,OrganizationAPIKey,OrganizationAPIKeyWithValue,UserAPIKey, andUserAPIKeyWithValuemodels - authorization: Add filter parameters to role/resource assignment list
- Add
ResourceID,ResourceExternalID,ResourceTypeSlugparameters toAuthorizationListRoleAssignmentsParams - Add
RoleSlugparameter toAuthorizationListRoleAssignmentsForResourceByExternalIDParamsandAuthorizationListRoleAssignmentsForResourceParams - organization_membership: Add new organization membership service
- Add new
OrganizationMembershipServicewith methods:List,Create,Get,Update,Delete,Deactivate,Reactivate,ListGroups - Define
OrganizationMembershipRoleinterface with single and multiple variants for flexible role assignment - Add corresponding parameter types for all service methods
- vault: Add new generated vault methods
- Add
CreateRekeymethod for re-encrypting data keys under a new context - Add
ListKvMetadatamethod for retrieving object metadata - Add object CRUD operations via generated service:
CreateKv,GetKv,GetName,UpdateKv,DeleteKv,ListKv,ListKvVersions - webhooks: Rename webhook endpoint model type
- Rename
WebhookEndpointJSONtoWebhookEndpoint - Rename
WebhookEndpointJSONStatustoWebhookEndpointStatus - Update method signatures and return types accordingly
- pipes: Add pipes connected account event models
- Add
PipeConnectedAccountmodel with state tracking - Add
PipesConnectedAccountConnected,PipesConnectedAccountDisconnected,PipesConnectedAccountReauthorizationNeededevent models - Add
PipeConnectedAccountStateenum withconnectedandneeds_reauthorizationvalues - Add webhook event types for pipes integration events
- generated: Add new vault-related model types
- Add
Actormodel for audit log actor representation - Add vault encryption models:
CreateDataKeyResponse,DecryptResponse,DeleteObjectResponse - Add vault object models:
Object,ObjectMetadata,ObjectSummary,ObjectVersion,ObjectWithoutValue - Add vault request models:
CreateDataKeyRequest,DecryptRequest,RekeyRequest,CreateObjectRequest,UpdateObjectRequest - Add error and metadata models:
Error,ListMetadata,VersionListResponse
- session:
Session.Refreshnow returns a non-nil error alongside the result on authentication-level failures (refresh_token_revoked,refresh_failed). TheRefreshSessionResult.Errfield has been removed — use the second return value instead. Callers should checkresult.Authenticated(noterr == nil) as the success signal.
Migration: replace result.Err with the err return value from Refresh:
// Before (v8)
result, _ := session.Refresh(ctx)
if !result.Authenticated {
if result.Err != nil {
var apiErr *workos.APIError
errors.As(result.Err, &apiErr)
}
}
// After (v9)
result, err := session.Refresh(ctx)
if !result.Authenticated {
if err != nil {
var apiErr *workos.APIError
errors.As(err, &apiErr)
}
}v9.0.0
⚠ BREAKING CHANGES
- return error from Session.Refresh on auth failures (https://github.com/workos/workos-go/issues/549" rel="noreferrer" target="_blank">#549)
- audit_logs: Rename audit log model types (breaking) (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554)
- radar: Remove device_fingerprint and bot_score parameters (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554)
- user_management: Refactor organization membership to dedicated service (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554)
Features
- api_keys: Add expires_at field to API key models (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- audit_logs: Rename audit log model types (breaking) (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- authorization: Add filter parameters to role/resource assignment list (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- generated: Add new vault-related model types (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- organization_membership: Add new organization membership service (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- pipes: Add pipes connected account event models (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- radar: Remove device_fingerprint and bot_score parameters (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- user_management: Refactor organization membership to dedicated service (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- vault: Add new vault service for encryption key management (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
- webhooks: Rename webhook endpoint model type (https://github.com/workos/workos-go/issues/554" rel="noreferrer" target="_blank">#554) (https://github.com/workos/workos-go/commit/0add1169ca3254c962d312700208b1972dfd380d" rel="noreferrer" target="_blank">0add116)
Bug Fixes
- return error from Session.Refresh on auth failures (https://github.com/workos/workos-go/issues/549" rel="noreferrer" target="_blank">#549) (https://github.com/workos/workos-go/commit/239fc227c6bd0675f2b23b3ae2e883fcaddcb462" rel="noreferrer" target="_blank">239fc22)
v8.0.1
v8.0.0...v8.0.1" rel="noreferrer" target="_blank">8.0.1 (2026-05-13)
Bug Fixes
- add URL escaping, JWT exp, and refresh errors (https://github.com/workos/workos-go/issues/548" rel="noreferrer" target="_blank">#548) (https://github.com/workos/workos-go/commit/d6ba223172fdd60c13cdbfdd7cf6c4319b876599" rel="noreferrer" target="_blank">d6ba223)
v8.0.0
v7.1.2...v8.0.0" rel="noreferrer" target="_blank">8.0.0 (2026-05-06)
⚠ BREAKING CHANGES
- authorization: Change email field type in multiple models
- user_management: Add user API key management endpoints
- user_management: Change email field type in user management models
- authorization: Rename RoleAssignment to UserRoleAssignment
Features
- add API documentation site generation (https://github.com/workos/workos-go/issues/546" rel="noreferrer" target="_blank">#546) (https://github.com/workos/workos-go/commit/b9701eaaa2f8cb3da002c63564e10860e0aee15f" rel="noreferrer" target="_blank">b9701ea)
- api_keys: Add organization and user API key models (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- authorization: Add pagination order enum and update enum handling (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- authorization: Change email field type in multiple models (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- authorization: Rename RoleAssignment to UserRoleAssignment (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- authorization: Unify BYOK key provider enum (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- directory_sync: Add name field to directory user models (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- user_management: Add name field to Profile and SSO models (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- user_management: Add user API key management endpoints (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- user_management: Add user field to organization membership models (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- user_management: Change email field type in user management models (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
Bug Fixes
- events: Add admin_portal source to EventContextActorSource (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
- events: Add vault.byok_key.deleted event type (https://github.com/workos/workos-go/commit/1b8f1d6d3aaaf907c3c823d712e0b48f8d8a2480" rel="noreferrer" target="_blank">1b8f1d6)
v7.1.2
v7.1.1...v7.1.2" rel="noreferrer" target="_blank">7.1.2 (2026-05-01)
Bug Fixes
- set canonical User-Agent header format (https://github.com/workos/workos-go/issues/542" rel="noreferrer" target="_blank">#542) (https://github.com/workos/workos-go/commit/01d535fe47a0200ece0fb9d7e45f4cf04c888c0e" rel="noreferrer" target="_blank">01d535f)
--- This PR was generated with Release Please. See documentation.
v7.1.1
v7.1.0...v7.1.1" rel="noreferrer" target="_blank">7.1.1 (2026-04-30)
Bug Fixes
- parse webhook/action signature timestamps as milliseconds (https://github.com/workos/workos-go/issues/539" rel="noreferrer" target="_blank">#539) (https://github.com/workos/workos-go/commit/ed9b464746db86d0b4cd32ea197b8dc7277d0b6b" rel="noreferrer" target="_blank">ed9b464)
v7.1.0
v7.0.0...v7.1.0" rel="noreferrer" target="_blank">7.1.0 (2026-04-28)
Features
- generated: Add Groups API and organization membership groups support (https://github.com/workos/workos-go/issues/537" rel="noreferrer" target="_blank">#537) (https://github.com/workos/workos-go/commit/e9b53ed4ed537c8036cfdc7766b0e882e648f5e0" rel="noreferrer" target="_blank">e9b53ed)
v7.0.0
v6.5.0...v7.0.0" rel="noreferrer" target="_blank">7.0.0 (2026-04-22)
⚠ BREAKING CHANGES
- v7 rewrites the SDK around the root
workospackage and a sharedworkos.Client, removing all legacypkg/*imports, package-levelSetAPIKey/Configurehelpers, and compatibility re-exports. - Service access now goes through
client.Service()accessors, many method signatures changed, and list endpoints now return auto-paginating iterators instead ofList*Responsewrappers withListMetadata. - AuthKit/SSO/logout URL helpers changed, webhook verification now uses
workos.NewWebhookVerifier(...),pkg/workos_errorswas removed in favor of new root error types, and Vault models have several incompatible shape and field-name changes.
See the https://github.com/workos/workos-go/blob/main/docs/V7_MIGRATION_GUIDE.md" rel="noreferrer" target="_blank">v7 migration guide for the full upgrade checklist and code examples.
v6.5.0
v6.4.0...v6.5.0" rel="noreferrer" target="_blank">6.5.0 (2026-03-20)
Features
- user-management: add DirectoryManaged to OrganizationMembership (https://github.com/workos/workos-go/issues/508" rel="noreferrer" target="_blank">#508) (https://github.com/workos/workos-go/commit/e9206b1e4dd3fb134125dc63d484065e9fce7574" rel="noreferrer" target="_blank">e9206b1)
Bug Fixes
- allow clearing organization domains by sending empty arrays (https://github.com/workos/workos-go/issues/522" rel="noreferrer" target="_blank">#522) (https://github.com/workos/workos-go/commit/a3153914e5586b1e2ab139ce184ef618156b2157" rel="noreferrer" target="_blank">a315391)
- directorysync.UserGroup: add missing fields (https://github.com/workos/workos-go/issues/480" rel="noreferrer" target="_blank">#480) (https://github.com/workos/workos-go/commit/ba37619a0b6469af175065901a30e410e1d24249" rel="noreferrer" target="_blank">ba37619)
- organizations delete has wrong url casing (https://github.com/workos/workos-go/issues/479" rel="noreferrer" target="_blank">#479) (https://github.com/workos/workos-go/commit/5de46296e2f53cf1c0bc24c7788dc9409b45b726" rel="noreferrer" target="_blank">5de4629)
- update renovate rules (https://github.com/workos/workos-go/issues/504" rel="noreferrer" target="_blank">#504) (https://github.com/workos/workos-go/commit/4158a588e9baee7779ea9ce3bf883508eb6018ea" rel="noreferrer" target="_blank">4158a58)
v6.4.0
What's Changed
- Make Pipes interface a little more idiomatic Go by @dandorman in #488
- Bump version to 6.3.0 by @workos-sdk-automation[bot] in #489
- Add custom_attributes field to OrganizationMembership by @ajworkos in #490
- add list session method by @petarTenderly in #470
- Bump version to 6.4.0 by @workos-sdk-automation[bot] in #491
New Contributors
- @workos-sdk-automation[bot] made their first contribution in #489
- @petarTenderly made their first contribution in #470
Full Changelog: v6.3.0...v6.4.0
v6.3.0
What's Changed
- Add context7.json to repo by @nicknisi in #483
- Add
ReadObjectByNamemethod for Vault API by @hexedpackets in #484 - Add Pipes module by @dandorman in #487
- Make Pipes interface a little more idiomatic Go by @dandorman in #488
- Bump version to 6.3.0 by @workos-sdk-automation[bot] in #489
New Contributors
- @dandorman made their first contribution in #487
- @workos-sdk-automation[bot] made their first contribution in #489
Full Changelog: v6.2.0...v6.3.0
v6.2.0
What's Changed
- Add
rolesproperty to directory user & sso profile by @kendallstrautman in #481 - Bump version v6.2.0 by @kendallstrautman in #482
Full Changelog: v6.1.0...v6.2.0
v6.1.0
What's Changed
- Default to adding idempotecy-key to audit-logs/events if not present, added in retryability logic to endpoints#492 by @swaroopAkkineniWorkos in #475
- Add support for resending invites by @antn in #476
New Contributors
- @swaroopAkkineniWorkos made their first contribution in #475
- @antn made their first contribution in #476
Full Changelog: v6.0.0...v6.1.0
v6.0.0
What's Changed
- Add
permissionsto the ListOrganizationRoles response by @jyecusch in #468 - Fix UpdateOrganization JSON serialization by @nicknisi in #472
- Change organization metadata to map[string]*string by @nicknisi in #471
- Remove "domain" param from directories query by @ameesha in #301
- Fix CreateOrganizationOpts.Metadata to use map[string]string by @nicknisi in #474
New Contributors
- @jyecusch made their first contribution in #468
Full Changelog: v5.2.0...v6.0.0
v5.2.0
What's Changed
- Add organization name field to OrganizationMembership struct by @kaylagordon in #463
- updated the UpdateOrganizationOpts fields to optional by @rarevalo13 in #460
- V5.2.0 by @rarevalo13 in #465
New Contributors
- @kaylagordon made their first contribution in #463
Full Changelog: v5.1.0...v5.2.0
v5.1.0
What's Changed
Full Changelog: v5.0.0...v5.1.0
v5.0.0
What's Changed
- Re-introduce metadata removal support (breaking change) by @nicknisi in #457
Breaking Changes Summary
The v5 release includes the following breaking change:
UpdateUserOpts.Metadatafield type changed frommap[string]stringtomap[string]*string(introduced in PR #457)- This allows setting metadata values to
nilto remove them server-side
Migration Guide for Users
// 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: v4.46.1...v5.0.0
v4.46.1
What's Changed
- Fix: Revert breaking change in v4.46.0 to maintain backward compatibility by @nicknisi in #455
Full Changelog: v4.46.0...v4.46.1
v4.46.0
- Adds ability to pass in nil values to metadata keys when updating a user. This allows for clearing of existing metadata fields on a user.
v4.45.1
- Correctly unmarshal list_metadata pagination cursors across User Management, Organizations, SSO, and Directory Sync
v4.45.0
- Added structured authentication error handling for AuthKit User Management API
- New error types for authentication scenarios:
- EmailVerificationRequiredError
- MFAEnrollmentError
- MFAChallengeError
- OrganizationSelectionRequiredError
- SSORequiredError
- OrganizationAuthenticationMethodsRequiredError
- 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
v4.44.0
What's Changed
- added StripeCustomerID to org struct by @rarevalo13 in #442
Full Changelog: v4.43.0...v4.44.0
v4.43.0
- Add metadata serialization for updating organizations
v4.42.0
What's Changed
- add organization_domain created/updated/deleted events by @ajworkos in #435
- fix: use standard 12-byte nonce for AES-GCM encryption in vault package by @hexedpackets in #438
Full Changelog: v4.41.0...v4.42.0
v4.41.0
What's Changed
- Added support for custom oauth scopes (https://github.com/workos/workos-go/pull/431)
- Correctly deserialize
ListIdentitiesResultas array (https://github.com/workos/workos-go/pull/433)
Full Changelog: v4.40.0...v4.41.0
v4.40.0
What's Changed
- Add
EmailtoUpdateUserOptsby @cmatheson in #429 - added
omitemptyto ExternalID field by @rarevalo13 in #428 - Bump to v4.40.0 by @rarevalo13 in #430
Full Changelog: v4.39.0...v4.40.0
v4.39.0
What's Changed
- Add "warnings" field to FGA query and check response by @atainter in #426
- Bump to v4.39.0 by @atainter in #427
Full Changelog: v4.38.0...v4.39.0
v4.38.0
What's Changed
- Support optional authenticated data in local encrypt/decrypt by @hexedpackets in #424
Full Changelog: v4.37.0...v4.38.0