Releases: clerk/javascript
@clerk/[email protected]
Patch Changes
- Updated dependencies [
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
-
Add payment history tab to UserProfile and OrgProfile (#6075) by @aeliox
-
Add TypeScript types and en-US localization for upcoming
<APIKeys />
component. This component will initially be in early access. (#5858) by @wobsoriano -
Add missing semibold FontWeightScale type (#6114) by @jacekradko
-
Parse partial
plan
inClerkAPIError.meta
(#6102) by @panteliselef -
Add localizations for some commerce strings, general cleanups (#6101) by @aeliox
-
Introduce
commerce.checkout.pastDueNotice
localization key. (#6097) by @panteliselef
@clerk/[email protected]
@clerk/[email protected]
Patch Changes
-
Bug fix: Toggling the period switch would not match the requested period
startCheckout({ period })
. (#6102) by @panteliselef -
Updated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Minor Changes
-
Introduces machine authentication, supporting four token types:
api_key
,oauth_token
,machine_token
, andsession_token
. For backwards compatibility,session_token
remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6067) by @wobsorianoYou can specify which token types are allowed by using the
acceptsToken
option in thegetAuth()
function. This option can be set to a specific type, an array of types, or'any'
to accept all supported tokens.Example usage:
import { createServerFn } from '@tanstack/react-start'; import { getAuth } from '@clerk/tanstack-react-start/server'; import { getWebRequest } from '@tanstack/react-start/server'; const authStateFn = createServerFn({ method: 'GET' }).handler(async () => { const request = getWebRequest(); const auth = await getAuth(request, { acceptsToken: 'any' }); if (authObject.tokenType === 'session_token') { console.log('this is session token from a user'); } else { console.log('this is some other type of machine token'); console.log('more specifically, a ' + authObject.tokenType); } return {}; });
Patch Changes
- Updated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
-
Parse partial
plan
inClerkAPIError.meta
(#6102) by @panteliselef -
Updated dependencies [
19e9e11
,18bcb64
,138f733
,48be55b
,2c6f805
,97749d5
]:- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Minor Changes
-
Introduces machine authentication, supporting four token types:
api_key
,oauth_token
,machine_token
, andsession_token
. For backwards compatibility,session_token
remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6067) by @wobsorianoYou can specify which token types are allowed by using the
acceptsToken
option in thegetAuth()
function. This option can be set to a specific type, an array of types, or'any'
to accept all supported tokens.Example usage:
import { getAuth } from '@clerk/react-router/ssr.server'; import type { Route } from './+types/profile'; export async function loader(args: Route.LoaderArgs) { const authObject = await getAuth(args, { acceptsToken: 'any' }); if (authObject.tokenType === 'session_token') { console.log('this is session token from a user'); } else { console.log('this is some other type of machine token'); console.log('more specifically, a ' + authObject.tokenType); } return {}; }
Patch Changes
- Updated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Minor Changes
-
Add
<APIKeys />
component. This component will initially be in early access and not recommended for production usage just yet. (#5858) by @wobsoriano -
Respect
acceptsToken
when returning unauthenticated session or machine object. (#6112) by @wobsoriano
Patch Changes
-
Re-organize internal types for the recently added "machine authentication" feature. (#6067) by @wobsoriano
-
Resolve machine token property mixing in discriminated unions (#6079) by @wobsoriano
-
Updated dependencies [
19e9e11
,18bcb64
,2148166
,4319257
,607d333
,138f733
,4118ed7
,18bcb64
,d832d91
,6842ff1
,48be55b
,183e382
,2c6f805
,97749d5
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]