Packages

@clerk/clerk-js

6.44.0 · 17 Nov 2026MIT1.5M / weekRepositoryHomepagenpmAtom feed

Your version

4.56.0

28 Aug 2023Where it was published

4.73.14 is the newest release of 4.x.

In short

14 new8 fixed3 internal

Security

1 advisory affects 4.56.0; 5.89.0 fixes them

Release note

Minor Changes

  • Introducing validatePassword for SignIn and SignUp resources

    • Validate a password based on the instance's configuration set in Password Policies in Dashboard

  • Introduce a new resource called OrganizationSuggestion along with retrieve() & accept() methods

    Also make available the user's suggestions from the useOrganizationList hook

  • Introduces userInvitations from useOrganizationList

    userInvitations is a paginated list of data. It can be used to create Paginated tables or Infinite lists.

  • Implement Resend OTP functionality as part of the Organization Domain verification flow

  • Introduce hasImage in User / Organization / Session resources

  • Improve redirects on OAuth callback. Now, if you try to sign up with a provider that allows unverified accounts, it will

    navigate to the appropriate change when needed, fixing the broken flow.

  • Introduce logoLinkUrl prop in appearance.layout

    A new logoLinkUrl prop has been added to appearance.layout and used in ApplicationLogo to change the href of the link.
    By default, the logo link url will be the Home URL you've set in the Clerk Dashboard.

Patch Changes

  • Pass dev_browser to AP via query param, fix AP origin detection util

  • Introduces a new resource called OrganizationMembership

    • useOrganization has been updated in order to return a list of domain with the above type

  • Introduces Membership Requests in <OrganizationProfile />

    • This is a list of users that have requested to join the active organization

  • Updates signature of OrganizationMembership.retrieve to support backwards compatibility while allowing using the new paginated responses.

    • userMemberships is now also part of the returned values of useOrganizationList

  • Introduces the accept method in UserOrganizationInvitation class

  • Display a notification counter for organization invitations in OrganizationSwitcher

  • Introduces a new resource called OrganizationDomain

    • useOrganization has been updated in order to return a list of domain with the above type

  • Introduces domains and invitations in <OrganizationProfile />

    • The "Members" page now accommodates Domain and Individual invitations

    • The "Settings" page allows for the addition, edit and removal of a domain

  • Fix a bug where it was not possible to delete the username if it was optional.

  • A OrganizationMembershipRequest can now be rejected

    • New OrganizationMembershipRequest.reject method alongside accept

    • As an organization admin, navigate to Organization Profile > Members > Requests. You can now reject a request from the table.

  • Ensure the session token is updated when calling setActive() in a non-browser environment.

  • Introduces an invitation list within <OrganizationSwitcher/>

    • Users can accept the invitation that is sent to them

  • When updating enrollment mode of a domain uses can now delete any pending invitations or suggestions.

  • Construct urls based on context in <OrganizationSwitcher/>

    • Deprecate afterSwitchOrganizationUrl

    • Introduce afterSelectOrganizationUrl & afterSelectPersonalUrl

    afterSelectOrganizationUrl accepts

    • Full URL -> 'clerk.com'

    • relative path -> '/organizations'

    • relative path -> with param '/organizations/:id'

    • function that returns a string -> (org) => /org/${org.slug}
      afterSelectPersonalUrl accepts

    • Full URL -> 'clerk.com'

    • relative path -> '/users'

    • relative path -> with param '/users/:username'

    • function that returns a string -> (user) => /users/${user.id}

  • Introduces list of suggestions within <OrganizationSwitcher/>

    • Users can request to join a suggested organization

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.