From 0f6c826c70148ea7944822080f70cacddd1da405 Mon Sep 17 00:00:00 2001 From: Dimitris Klouvas Date: Mon, 16 Oct 2023 20:29:25 +0300 Subject: [PATCH] fix(nextjs): Drop async from fn without await to resolve eslint error --- packages/nextjs/src/ssr/utils/authenticateRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/src/ssr/utils/authenticateRequest.ts b/packages/nextjs/src/ssr/utils/authenticateRequest.ts index 60621c2907..7b53eb27b3 100644 --- a/packages/nextjs/src/ssr/utils/authenticateRequest.ts +++ b/packages/nextjs/src/ssr/utils/authenticateRequest.ts @@ -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'];