javascript

Official Javascript repository for Clerk authentication

MIT License

Downloads
6.1M
Stars
1.1K
Committers
167
javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

    • Adds Stately's Browser Inspector in development builds (#3424) by @tmilewski

    • Removes @statelyai/inspect from dependencies

    • Ensures all inspector-related code is omitted from the build

Patch Changes

  • Fix: Verification form submission wasn't working after returning from "choosing an alternate strategy" without making a selection. (#3425) by @tmilewski

    Perf: Adds a NeverRetriable state for applicable strategies so the countdown doesn't run needlessly.

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

  • Add a custom logger to allow logging a message or warning to the console once per session, in order to avoid consecutive identical logs due to component rerenders. (#3383) by @desiprisg

  • With the next major release, NextJS@15 will depend on react and react-dom v19, which is still in beta. We are updating our peer dependencies accordingly in order to accept react and react-dom @ 19.0.0-beta (#3428) by @nikosdouvlis

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

  • With the next major release, NextJS@15 will depend on react and react-dom v19, which is still in beta. We are updating our peer dependencies accordingly in order to accept react and react-dom @ 19.0.0-beta (#3428) by @nikosdouvlis

  • Updated dependencies [ff31f7255, 0e48fc210]:

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

  • Review PT-BR localization: Adds missing keys, fixes some typos (#3412) by @danilofuchs
javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

  • Update FieldError/GlobalError types to allow render function children while using the asChild prop (#3426) by @tmilewski
javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Add support for GoogleOneTap. New APIs listed: (#3392) by @panteliselef

    React component

    • <GoogleOneTap/>

    Customize the UX of the prompt

    <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.

    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

    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,
          });
        }
      },
    });
    
javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes