github descope/node-sdk release/v1.6.12
1.6.12

10 hours ago

Breaking changes

  • Project management renames: We've renamed project data to 'snapshot' - and made the related functions clearer this way:
    • export > exportSnapshot
    • import > importSnapshot

Enhancements

  • Batch invitation of users with roles: We added the roles parameter to the inviteBatch function, so that users can be invited with predefined roles.
  • Snapshot validation: We added a new function validateSnapshot, which performs an import dry run and reports any validation failures or missing data. We recommend calling this function right before importSnapshot, to minimize risk of import failure.
  • Additional errors upon batch user invite: When batch inviting users, we added a new attribute to the response named additionalErrors, which will expose which users failed on the invite sent and which didn't.
  • Revoke previous user sessions: We added a new configuration in LoginOptions called revokeOtherSessions. This new configuration will expire all JWTs created prior to the one in the request. This is useful for signing the user out of all previous sessions, except for the current one.
  • Test user searching: We added a new function named searchTestUsers, to filter over test users. Learn more from our SDK's README.
  • Enhanced functionality for adding user roles: With this new version of the addRole function, you can add a role to an existing user not just on the project level, but also on the tenant level. If the tenant isn't already associated with the user, it will happen as part of this command.

Don't miss a new node-sdk release

NewReleases is sending notifications on new releases.