Skip to content

Commit

Permalink
chore: Release privateRoutes support and bump version (#777)
Browse files Browse the repository at this point in the history
## Related Issues

Fixes <link_to_github_issue>

## 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)
  • Loading branch information
gaokevin1 authored Aug 9, 2024
1 parent ccf6976 commit cec8ff6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit cec8ff6

Please sign in to comment.