Skip to content

Commit

Permalink
Merge branch 'main' into chore/add-files-to-expo-passkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko authored Nov 6, 2024
2 parents 68a9d45 + e10232c commit d41e2eb
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/grumpy-snakes-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/backend': minor
---

Introduce experimental verification helpers exported from `@clerk/backend/internal`
- __experimental_reverificationMismatch
- __experimental_reverificationMismatchResponse
7 changes: 7 additions & 0 deletions .changeset/plenty-seas-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/nextjs': minor
---

Introduce experimental verification helpers exported from `@clerk/nextjs/server`
- __experimental_reverificationMismatch
- __experimental_reverificationMismatchResponse
2 changes: 2 additions & 0 deletions packages/backend/src/__tests__/exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ describe('subpath /internal exports', () => {
expect(Object.keys(internalExports).sort()).toMatchInlineSnapshot(`
[
"AuthStatus",
"__experimental_reverificationMismatch",
"__experimental_reverificationMismatchResponse",
"constants",
"createAuthenticateRequest",
"createClerkRequest",
Expand Down
5 changes: 5 additions & 0 deletions packages/backend/src/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ export { decorateObjectWithResources, stripPrivateDataFromObject } from './util/

export { createClerkRequest } from './tokens/clerkRequest';
export type { ClerkRequest } from './tokens/clerkRequest';

export {
__experimental_reverificationMismatch,
__experimental_reverificationMismatchResponse,
} from '@clerk/shared/authorization-errors';
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

exports[`/server public exports > should not include a breaking change 1`] = `
[
"__experimental_reverificationMismatch",
"__experimental_reverificationMismatchResponse",
"auth",
"buildClerkProps",
"clerkClient",
Expand Down
8 changes: 8 additions & 0 deletions packages/nextjs/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,11 @@ export type {
Token,
User,
} from '@clerk/backend';

/**
* Utilities for reverification
*/
export {
__experimental_reverificationMismatchResponse,
__experimental_reverificationMismatch,
} from '@clerk/backend/internal';

0 comments on commit d41e2eb

Please sign in to comment.