Packages

@clerk/clerk-react

5.61.3 · 27 Feb 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: This package is no longer supported. Please use @clerk/react instead. See the upgrade guide for more info: https://clerk.com/docs/guides/development/upgrading/upgrade-guides/core-3What to use instead
Your version

5.2.0

21 May 2024Where it was published

5.61.12 is the newest release of 5.x.

npm marks 5.2.0 as deprecated: This package is no longer supported. Please use @clerk/react instead. See the upgrade guide for more info: clerk.com/docs/guides/development/upgrading/upg…

In short

1 new2 internal

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,
      });
    }
  },
});
```

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.