@clerk/clerk-js
6.44.0 · 17 Nov 2026MIT1.5M / weekRepositoryHomepagenpmAtom feed
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
- ModerateClerk-js vulnerable to bypass of OAuth authentication flow by manipulating request at OTP verification stageGHSA-3mm3-wfpv-q85g · 20 Nov 2025Fixed in 5.89.0
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-jswas creating a newSignUpResourceobject, 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.