From cec8ff6097e583adf589368648cc75b2ab8a88be Mon Sep 17 00:00:00 2001 From: Kevin J Gao <32936811+gaokevin1@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:23:21 -0700 Subject: [PATCH] chore: Release privateRoutes support and bump version (#777) ## Related Issues Fixes ## Related PRs | branch | PR | | ------------ | ---------- | | service a PR | Link to PR | | service b PR | Link to PR | ## Description Bump version of the SDK and release the privateRoute support feature. ## Must - [ ] Tests - [ ] Documentation (if applicable) --- packages/sdks/nextjs-sdk/test/server/authMiddleware.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdks/nextjs-sdk/test/server/authMiddleware.test.ts b/packages/sdks/nextjs-sdk/test/server/authMiddleware.test.ts index 328052db5..bc83fb62d 100644 --- a/packages/sdks/nextjs-sdk/test/server/authMiddleware.test.ts +++ b/packages/sdks/nextjs-sdk/test/server/authMiddleware.test.ts @@ -133,7 +133,7 @@ describe('authMiddleware', () => { expect(NextResponse.redirect).not.toHaveBeenCalled(); }); - it('blocks unauthenticated users for private routes when both public and private routes are defined', async () => { + it('redirects unauthenticated users for private routes when both public and private routes are defined', async () => { mockValidateJwt.mockRejectedValue(new Error('Invalid JWT')); const middleware = authMiddleware({ publicRoutes: ['/sign-in'],