github descope/go-sdk v1.5.0

latest releases: v1.6.4, v1.6.3, v1.6.2...
14 months ago

Breaking changes

  • User custom attributes 💫 : We're glad to announce that we now support adding custom attributes to the user object! The default user object is great, but sometimes you want to keep a bit more information on it for your app's needs.
    Creation of the attributes are done from the Descope Console, and you can find them in the user object under the customAttributes property. Option to set, update and delete the values are also available from the SDK.
    Please notice that this breaks compilation for the following user functions: Create, Invite, Update, CreateTestUser.
  • Add a Login ID to the user upon update: When updating a user's phone or email (via OTP / Magic Link / Enchanted Link), you can decide if to make that new value part of the user's Login IDs so that they can later on authenticate with them.
    There can be times where an existing user with the new identifier already exists in your user database - so a merging strategy needs to be defined as well.
    All of this can be done using the updateOptions object.
    Please notice that this breaks compilation for the following functions: UpdateUserEmail, UpdateUserPhone.

Enhancements

  • User picture update: You can now update the user's picture using the new user Picture property.
  • Get tenant SSO configuration: Using the GetSettings function, you can now fetch a specific tenant's SSO configuration. Example on how to do so in the repo's README, under the 'Manage SSO Settings' section.

Bug fixes

  • Readme updates: Fixed some missing arguments and typos in the repo's README.

Don't miss a new go-sdk release

NewReleases is sending notifications on new releases.