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 9 months ago

Minor Changes

  • Introduce handshake mechanism and x-clerk-auth-status in response (#2774) by @dimkl

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Minor Changes

  • Accept skipInvitationScreen as a prop from OrganizationSwitcher. (#2713) by @panteliselef

    skipInvitationScreen hides the screen for sending invitations after an organization is created.
    By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1

  • Add support for X/Twitter v2 OAuth provider (#2690) by @kostaspt

  • Use signInUrl from props/ context / repo-level to construct a redirectUrl in email-link flow. (#2727) by @dimkl

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - [email protected]

Published by clerk-cookie 9 months ago

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Major Changes

  • Make all listing API requests to return consistent { data: Resource[], totalCount: number }. (#2714) by @dimkl

    Support pagination request params { limit, offset } to:

    • sessions.getSessionList({ limit, offset })
    • clients.getClientList({ limit, offset })

    Since the users.getUserList() does not return the total_count as a temporary solution that
    method will perform 2 BAPI requests:

    1. retrieve the data
    2. retrieve the total count (invokes users.getCount() internally)

Minor Changes

  • Add unbanUser, lockUser, and unlockUser methods to the UserAPI class. (#2780) by @panteliselef

  • Add support for X/Twitter v2 OAuth provider (#2690) by @kostaspt

  • Add banUser method to the User operations (accessible under clerkClient.users). Executes the Ban a user backend API call. (#2766) by @bartlenaerts

Patch Changes

  • Expose resources types (#2660) by @panteliselef

  • The auth().redirectToSignIn() helper no longer needs to be explicitly returned when called within the middleware. The following examples are now equivalent: (#2691) by @nikosdouvlis

    // Before
    export default clerkMiddleware(auth => {
      if (protectedRoute && !auth.user) {
        return auth().redirectToSignIn()
      }
    })
    
    // After
    export default clerkMiddleware(auth => {
      if (protectedRoute && !auth.user) {
        auth().redirectToSignIn()
      }
    })
    

    Calling auth().protect() from a page will now automatically redirect back to the same page by setting redirect_url to the request url before the redirect to the sign-in URL takes place.

  • Fix clerkClient.organizations.getOrganizationMembershipList() return type to be { data, totalCount } (#2681) by @dimkl

  • Preserve url protocol when joining paths. (#2745) by @panteliselef

  • Updated dependencies [8daf8451c, be991365e]:

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Minor Changes

  • Accept skipInvitationScreen as a prop from OrganizationSwitcher. (#2740) by @panteliselef

    skipInvitationScreen hides the screen for sending invitations after an organization is created.
    By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Minor Changes

  • Accept skipInvitationScreen as a prop from OrganizationSwitcher. (#2740) by @panteliselef

    skipInvitationScreen hides the screen for sending invitations after an organization is created.
    By default, Clerk will automatically hide the screen if the number of max allowed members is equal to 1

Patch Changes

javascript - [email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes

  • Add padding to app logo inside OrganizationList to align the logo with the rest of the content. (#2724) by @panteliselef