Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages - V4 #3413

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

clerk-cookie
Copy link
Collaborator

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release/v4, this PR will be updated.

Releases

@clerk/chrome-extension@0.7.0

Minor Changes

Patch Changes

  • Updated dependencies [fcc349cb5, fcc349cb5]:
    • @clerk/clerk-react@4.32.0
    • @clerk/clerk-js@4.73.0

@clerk/clerk-js@4.73.0

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

  • Updated dependencies [fcc349cb5]:
    • @clerk/types@3.65.0
    • @clerk/localizations@1.28.5

@clerk/nextjs@4.31.0

Minor Changes

  • Add support for GoogleOneTap (#3409) by @panteliselef

    React component

    • <GoogleOneTap/>

    Customize the UX of the prompt

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

Patch Changes

  • Updated dependencies [fcc349cb5, fcc349cb5]:
    • @clerk/clerk-react@4.32.0
    • @clerk/types@3.65.0
    • @clerk/backend@0.38.9
    • @clerk/clerk-sdk-node@4.13.17

@clerk/clerk-react@4.32.0

Minor Changes

  • Add support for GoogleOneTap (#3409) by @panteliselef

    React component

    • <GoogleOneTap/>

    Customize the UX of the prompt

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

Patch Changes

  • Updated dependencies [fcc349cb5]:
    • @clerk/types@3.65.0

@clerk/types@3.65.0

Minor Changes

  • Added the following types (#3409) by @panteliselef

    interface Clerk {
      ...
      openGoogleOneTap: (props?: GoogleOneTapProps) => void;
      closeGoogleOneTap: () => void;
      authenticateWithGoogleOneTap: (params: AuthenticateWithGoogleOneTapParams) => Promise<SignInResource | SignUpResource>;
      handleGoogleOneTapCallback: (
        signInOrUp: SignInResource | SignUpResource,
        params: HandleOAuthCallbackParams,
        customNavigate?: (to: string) => Promise<unknown>,
      ) => Promise<unknown>;
      ...
    }
    
    type GoogleOneTapStrategy = 'google_one_tap'

@clerk/backend@0.38.9

Patch Changes

  • Updated dependencies [fcc349cb5]:
    • @clerk/types@3.65.0

@clerk/clerk-expo@0.20.22

Patch Changes

  • Updated dependencies [fcc349cb5, fcc349cb5]:
    • @clerk/clerk-react@4.32.0
    • @clerk/clerk-js@4.73.0

@clerk/fastify@0.6.42

Patch Changes

  • Updated dependencies [fcc349cb5]:
    • @clerk/types@3.65.0
    • @clerk/backend@0.38.9

gatsby-plugin-clerk@4.4.44

Patch Changes

  • Updated dependencies [fcc349cb5, fcc349cb5]:
    • @clerk/clerk-react@4.32.0
    • @clerk/types@3.65.0
    • @clerk/backend@0.38.9
    • @clerk/clerk-sdk-node@4.13.17

@clerk/localizations@1.28.5

Patch Changes

  • Updated dependencies [fcc349cb5]:
    • @clerk/types@3.65.0

@clerk/remix@3.2.6

Patch Changes

  • Updated dependencies [fcc349cb5, fcc349cb5]:
    • @clerk/clerk-react@4.32.0
    • @clerk/types@3.65.0
    • @clerk/backend@0.38.9

@clerk/clerk-sdk-node@4.13.17

Patch Changes

  • Updated dependencies [fcc349cb5]:
    • @clerk/types@3.65.0
    • @clerk/backend@0.38.9

@clerk/themes@1.7.15

Patch Changes

  • Updated dependencies [fcc349cb5]:
    • @clerk/types@3.65.0

@panteliselef panteliselef merged commit 5272a9e into release/v4 May 21, 2024
6 checks passed
@panteliselef panteliselef deleted the changeset-release/release/v4 branch May 21, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants