From da940d7a93f5331950a657b5e9f5180d1c47d6b0 Mon Sep 17 00:00:00 2001 From: Mikhail Danshin <50863514+EffectDoplera@users.noreply.github.com> Date: Fri, 19 Apr 2024 09:35:44 +0300 Subject: [PATCH] docs: remove types in js example --- .../01-building-your-application/09-authentication/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/01-building-your-application/09-authentication/index.mdx b/docs/02-app/01-building-your-application/09-authentication/index.mdx index ab2c22798038e..7753ea8380b75 100644 --- a/docs/02-app/01-building-your-application/09-authentication/index.mdx +++ b/docs/02-app/01-building-your-application/09-authentication/index.mdx @@ -682,7 +682,7 @@ export async function createSession(userId: string) { import 'server-only' import { cookies } from 'next/headers' -export async function createSession(userId: string) { +export async function createSession(userId) { const expiresAt = new Date(Date.now() + 7 * 24 * 60 * 60 * 1000) const session = await encrypt({ userId, expiresAt })