Minor Changes
-
Improve
subjectproperty handling for machine auth objects. (#6099) by @wobsorianoUsage:
import { createClerkClient } from '@clerk/backend'; const clerkClient = createClerkClient({ secretKey: process.env.CLERK_SECRET_KEY, publishableKey: process.env.CLERK_PUBLISHABLE_KEY, }); const requestState = await clerkClient.authenticateRequest(request, { acceptsToken: 'any', }); const authObject = requestState.toAuth(); switch (authObject.tokenType) { case 'api_key': // authObject.userId // authObject.orgId break; case 'machine_token': // authObject.machineId break; case 'oauth_token': // authObject.userId // authObject.clientId break; }
-
Respect
acceptsTokenwhen 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
-
Fix calculation of handshake URL when proxy URL is set on the ClerkProvider (#6119) by @jacekradko
-
Updating type of Verification.status (#6110) by @jacekradko
-
Resolve machine token property mixing in discriminated unions (#6079) by @wobsoriano
-
Updated dependencies [
19e9e11,18bcb64,138f733,48be55b,2c6f805,97749d5]:- @clerk/types@4.60.1
- @clerk/shared@3.9.7