Skip to content

Releases: clerk/javascript

@clerk/[email protected]

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

Minor Changes

  • Introduce a new experimental hook called useReverification that makes it easy to handle reverification errors. (#4362) by @panteliselef

    It returns a high order function (HOF) and allows developers to wrap any function that triggers a fetch request which might fail due to a user's session verification status.
    When such error is returned, the recommended UX is to offer a way to the user to recover by re-verifying their credentials.
    This helper will automatically handle this flow in the developer's behalf, by displaying a modal the end-user can interact with.
    Upon completion, the original request that previously failed, will be retried (only once).

    Example with clerk-js methods.

    import { __experimental_useReverification as useReverification } from "@clerk/nextjs";
    
    function DeleteAccount() {
      const { user } = useUser();
      const [deleteUserAccount] = useReverification(() => {
        if (!user) return;
        return user.delete();
      });
    
      return (
        <>
          <button
            onClick={async () => {
              await deleteUserAccount();
            }}
          >
            Delete account
          </button>
        </>
      );
    }

Patch Changes

@clerk/[email protected]

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

Minor Changes

    • Introduce redirectUrl property on setActive as a replacement for beforeEmit. (#4312) by @issuedat

    • Deprecates beforeEmit property on setActive.

Patch Changes

@clerk/[email protected]

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

@clerk/[email protected]

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

@clerk/[email protected]

31 Oct 19:00
15f6718
Compare
Choose a tag to compare

@clerk/[email protected]

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

@clerk/[email protected]

24 Oct 17:29
1cc8737
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

24 Oct 17:29
1cc8737
Compare
Choose a tag to compare

Patch Changes

  • Move @clerk/ui to devDependencies (#4399) by @dstaley

  • Show an error on <UserProfile /> if the Web3 wallet is already claimed. (#4389) by @EmmanouelaPothitou

  • Fix for legal consent rendered on the component when only social sign up is enabled (#4403) by @octoper

@clerk/[email protected]

24 Oct 17:29
1cc8737
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

24 Oct 17:29
1cc8737
Compare
Choose a tag to compare

Patch Changes