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

Patch Changes

  • Adjust how we are importing next/navigation to ensure it can function in versions of next that don't have this export. (#2652) by @BRKalow
javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Major 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

  • Infer the path the component is mounted at automatically in pages and app router (#2634) by @nikosdouvlis

  • The following paginated APIs now return { data, totalCount } instead of simple arrays, in order to make building paginated UIs easier: (#2633) by @dimkl

    • clerkClient.users.getOrganizationMembershipList(...)
    • clerkClient.organization.getOrganizationList(...)
    • clerkClient.organization.getOrganizationInvitationList(...)

    Revert changing the { data, errors } return value of the following helpers to throw the errors or return the data (keep v4 format):

    • import { verifyToken } from '@clerk/backend'
    • import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt'
    • BAPI clerkClient methods eg (clerkClient.users.getUserList(...))
  • Updated dependencies [8e5c881c4, d4ff346dd, a6308c67e]:

javascript - [email protected]

Published by clerk-cookie 9 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Major Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Major Changes

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

Major Changes

  • The following paginated APIs now return { data, totalCount } instead of simple arrays, in order to make building paginated UIs easier: (#2633) by @dimkl

    • clerkClient.users.getOrganizationMembershipList(...)
    • clerkClient.organization.getOrganizationList(...)
    • clerkClient.organization.getOrganizationInvitationList(...)

    Revert changing the { data, errors } return value of the following helpers to throw the errors or return the data (keep v4 format):

    • import { verifyToken } from '@clerk/backend'
    • import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt'
    • BAPI clerkClient methods eg (clerkClient.users.getUserList(...))

Patch Changes

  • Add the following properties to users.updateUser(userId, params) params: (#2619) by @SokratisVidros

    • password_hasher
    • password_digest
    • publicMetadata
    • privateMetadata
    • unsafeMetadata
  • Updated dependencies [d4ff346dd]:

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 - [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 the following properties to users.updateUser(userId, params) params: (#2628) by @dimkl

    • password_hasher
    • password_digest
    • publicMetadata
    • privateMetadata
    • unsafeMetadata
javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Major Changes

  • Changes the request.auth type from LegacyAuthObject to AuthObject. (#2609) by @dimkl

    type LegacyAuthObject = {
      sessionId: string | null;
      actor: ActClaim | undefined | null;
      userId: string | null;
      getToken: ServerGetToken | null;
      debug: AuthObjectDebug | null;
      claims: JwtPayload | null;
    };
    
    type AuthObject = {
      sessionClaims: JwtPayload | null;
      sessionId: string | null;
      actor: ActClaim | undefined | null;
      userId: string | null;
      orgId: string | undefined | null;
      orgRole: OrganizationCustomRoleKey | undefined | null;
      orgSlug: string | undefined | null;
      orgPermissions: OrganizationCustomPermissionKey[] | undefined | null;
      getToken: ServerGetToken | null;
      has: CheckAuthorizationWithCustomPermissions | null;
      debug: AuthObjectDebug | null;
    };
    

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 9 months ago

Patch Changes