Skip to content

Commit

Permalink
Call out required change for Next.js isAuthenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasballinger committed Dec 18, 2024
1 parent 71a1fc0 commit e6cbdc6
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,28 @@

## 0.0.78

- Add support for [custom OAuth callback and sign-in URLs](https://labs.convex.dev/auth/advanced#custom-callback-and-sign-in-urls)
- Add support for
[custom OAuth callback and sign-in URLs](https://labs.convex.dev/auth/advanced#custom-callback-and-sign-in-urls)

## 0.0.77

- Fix syntax of an import to work with convex-test.

## 0.0.76

- Potentially BREAKING: For NextJS, switched to `path-to-regexp` 6.3.0 to avoid
- BREAKING: A change in the logic for isAuthenticated for Next.js: it now
involves a server-side check. Update your auth.ts file by adding a new
`isAuthenticated` endpoint to the list of exported Convex functions, like

```
export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth(...
```

If you're not using Next.js, you should still add this named export as it's
the new suggested set of publicly exposed endpoints, but nothing should break
if you don't.

- Potentially breaking: For NextJS, switched to `path-to-regexp` 6.3.0 to avoid
ReDoS vulnerability. That version, while protected from the vulnerability, has
less expressive RegEx pattern support. If you are using `createRouteMatcher`
in middleware, it might not match some patterns that were previously available
Expand All @@ -19,8 +32,6 @@
- Upgraded to `@auth/core` 0.37.3. You may need upgrade @auth/core to "~0.37.3".
- Updated OAuth integration docs for supported providers (available at
https://labs.convex.dev/auth/config/oauth).
- Change in the logic for isAuthenticated for Next.js: it now involves a
server-side check.

## 0.0.75

Expand Down

1 comment on commit e6cbdc6

@hipdev
Copy link

@hipdev hipdev commented on e6cbdc6 Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.