Skip to content

Commit

Permalink
fix(nextjs): Drop async from fn without await to resolve eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkl committed Oct 16, 2023
1 parent b0ec818 commit 0f6c826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/ssr/utils/authenticateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { WithServerSideAuthOptions } from '../types';
/**
* @internal
*/
export async function authenticateRequest(ctx: GetServerSidePropsContext, opts: WithServerSideAuthOptions = {}) {
export function authenticateRequest(ctx: GetServerSidePropsContext, opts: WithServerSideAuthOptions = {}) {
const { headers, cookies } = ctx.req;

const cookieToken = cookies['__session'];
Expand Down

0 comments on commit 0f6c826

Please sign in to comment.