Skip to content

Releases: workos/workos-go

v6.1.0

21 Nov 12:12
3035d56

Choose a tag to compare

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

Full Changelog: v6.0.0...v6.1.0

v6.0.0

06 Nov 15:59
33538f0

Choose a tag to compare

What's Changed

  • Add permissions to 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

Full Changelog: v5.2.0...v6.0.0

v5.2.0

02 Oct 15:46
c3c94a5

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.1.0...v5.2.0

v5.1.0

25 Sep 18:27
8ef75a4

Choose a tag to compare

What's Changed

Full Changelog: v5.0.0...v5.1.0

v5.0.0

05 Sep 18:07
bb98743

Choose a tag to compare

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.Metadata field type changed from map[string]string to map[string]*string (introduced in PR #457)
  • This allows setting metadata values to nil to 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

05 Sep 17:43
c4165ba

Choose a tag to compare

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

04 Sep 20:53
84e44c5

Choose a tag to compare

  • 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

20 Aug 17:10
5315274

Choose a tag to compare

  • Correctly unmarshal list_metadata pagination cursors across User Management, Organizations, SSO, and Directory Sync

v4.45.0

31 Jul 22:28
91398e6

Choose a tag to compare

  • 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

28 Jul 18:31
15b6cbe

Choose a tag to compare

What's Changed

Full Changelog: v4.43.0...v4.44.0