Packages

@clerk/clerk-js

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

Your version

5.5.0

21 May 2024Where it was published

5.128.3 is the newest release of 5.x.

In short

1 new1 fixed2 internal

Security

1 advisory affects 5.5.0; 5.89.0 fixes them

Release note

Minor Changes

  • Add support for GoogleOneTap. New APIs listed:

React component

-   `<GoogleOneTap/>`

Customize the UX of the prompt

```tsx
<GoogleOneTap
  cancelOnTapOutside={false}
  itpSupport={false}
  fedCmSupport={false}
/>
```

Use the component from with Vanilla JS

-   `Clerk.openGoogleOneTap(props: GoogleOneTapProps)`  
-   `Clerk.closeGoogleOneTap()`

Low level APIs for custom flows

-   `await Clerk.authenticateWithGoogleOneTap({ token: 'xxxx'})`  
-   `await Clerk.handleGoogleOneTapCallback()`

We recommend using this two methods together in order and let Clerk to perform the correct redirections.

```tsx
google.accounts.id.initialize({
  callback: async response => {
    const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
    await Clerk.handleGoogleOneTapCallback(signInOrUp, {
      signInForceRedirectUrl: window.location.href,
    });
  },
});
```

In case you want to handle the redirection and session management yourself you can do so like this

```tsx
google.accounts.id.initialize({
  callback: async response => {
    const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
    if (signInOrUp.status === 'complete') {
      await Clerk.setActive({
        session: signInOrUp.createdSessionId,
      });
    }
  },
});
```

Patch Changes

  • A bug was fixed to not override the existing sign-up state on the OAuth callback.

    When continuing a sign-up flow with social connections, @clerk/clerk-js was creating a new SignUpResource object, instead of patching the existing one.

    This was affecting Web3 sign-up flows, since the wallet ID was being overridden on the browser redirect.

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.