Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasballinger committed Dec 19, 2024
1 parent aa7687e commit 288ce74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

## Unreleased

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

- Next.js middleware function `isAuthenticated` fails more loudly; previously it
returned false in the case of a Convex backend that didn't expose an endpoint
called `auth:isAuthenticated`, now it throws an error. This should help people
with the migration required for 0.0.76.

## 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)
- Export `SignInAction` and `SignOutAction` types.

## 0.0.77

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/nextjs/server/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ async function isAuthenticated(token: string | null): Promise<boolean> {
throw new Error(
"Server Error: could not find api.auth.isAuthenticated. convex-auth 0.0.76 introduced a new export in convex/auth.ts. Add `isAuthenticated` to the list of functions returned from convexAuth(). See convex-auth changelog for more https://github.com/get-convex/convex-auth/blob/main/CHANGELOG.md",
);
} else {
console.log("Returning false from isAuthenticated because", e);
}
throw e;
return false;
}
}

0 comments on commit 288ce74

Please sign in to comment.