Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dowski committed Dec 10, 2024
1 parent c66dc4f commit 7e42e6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nextjs/server/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ export function convexAuthNextjsMiddleware(
isAuthenticated: async () => {
const cookies = await getRequestCookiesInMiddleware(request);
try {
return await fetchQuery("auth:isAuthenticated" as any as IsAuthenticatedQuery, {}, {token: cookies.token ?? undefined});
return await fetchQuery(
"auth:isAuthenticated" as any as IsAuthenticatedQuery,
{},
{ token: cookies.token ?? undefined },
);
} catch {
return false;
}
Expand Down

0 comments on commit 7e42e6c

Please sign in to comment.