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

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Use the Google One Tap component from with Vanilla JS (#3409) by @panteliselef

    • Clerk.openGoogleOneTap({ cancelOnTapOutside: false, fedCmSupport: false, itpSupport: false })
    • 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 perform the correct redirections.

    google.accounts.id.initialize({
      callback: async response => {
        const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
        await Clerk.handleGoogleOneTapCallback(signInOrUp, {
          afterSignInUrl: 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,
          });
        }
      },
    });
    

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

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 /> to enable asChild prop for custom markup in render function usage. (#3396) by @alexcarpenter
javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Replace mount with open for GoogleOneTap. New api is __experimental_openGoogleOneTap. (#3379) by @panteliselef
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

  • Replace mount with open for GoogleOneTap. New api is __experimental_openGoogleOneTap. (#3379) by @panteliselef

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

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

  • Fix setActive not firing upon a successful sign up. (#3391) by @tmilewski
javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Replace mount with open for GoogleOneTap. New api is __experimental_openGoogleOneTap. (#3379) by @panteliselef

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

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes