Official Node SDK for interacting with the WorkOS API
authenticateWithTotp
method https://github.com/workos/workos-node/pull/856
listAuthFactors
method https://github.com/workos/workos-node/pull/857
ipAddress
and userAgent
https://github.com/workos/workos-node/pull/861
verifyEmailCode
method to handle nested user object in return https://github.com/workos/workos-node/pull/853
completePasswordReset
to resetPassword
and change response https://github.com/workos/workos-node/pull/854
createPasswordResetChallenge
to sendPasswordResetEmail
https://github.com/workos/workos-node/pull/855
enrollUserInMfaFactor
to enrollAuthFactor
https://github.com/workos/workos-node/pull/858
sendMagicAuthCode
to take email rather than email_address https://github.com/workos/workos-node/pull/860
listAuthFactors()
return https://github.com/workos/workos-node/pull/862
This is a major release of the WorkOS API that will likely contain breaking changes for your application. In addition to new APIs, we also cleaned up many of the interfaces in our API to offer a more consistent developer experience. Please carefully read these release notes and contact [email protected] if you encounter any issues.
createdAt
and updatedAt
fields to Directory User to match the Directory User in the webhooks (#733)Directory.state
to match the latest values on the platform and to be consistent with our webhooks. linked
has been renamed to active
and unlinked
has been renamed to inactive
. If you store these values in your systems you'll want to perform a migration to update them as well as any logic handling the state. (#812)Connection.connection_type
to Connection.type
.autoPagination
function that allows for iterating through all available pages on the endpoint without developers needing to write the iterating logic themselves (#788)User
interface to DirectoryUser
to match the rest of the platform and to clear up the User
namespace (#774)Group
interface to DirectoryGroup
to remain consistent with the rest of the platform and with DirectoryUser
(#775)Webhook
interface was renamed to Event
and consolidated with the interface of the Events API. Additionally, the responses from the Events API are now strongly typed (#801)Directory.type
now returns a DirectoryType
instead of a string (#806)ListUserOptions
interface to ListDirectoryUserOptions
(#779)ListGroupOptions
interface to ListDirectoryGroupOptions
(#799)rangeStart
and rangeEnd
parameters to range_start
and range_end
(#749)