From 6df09405b0126d22f90396797982104834abafa5 Mon Sep 17 00:00:00 2001 From: Alina Nair Date: Sun, 15 Mar 2026 21:36:35 +0530 Subject: [PATCH] fix: update deprecated deleteSession usage in Next.js tutorial --- src/routes/docs/tutorials/nextjs/step-4/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/tutorials/nextjs/step-4/+page.markdoc b/src/routes/docs/tutorials/nextjs/step-4/+page.markdoc index 202b4ead8c..699b729949 100644 --- a/src/routes/docs/tutorials/nextjs/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/nextjs/step-4/+page.markdoc @@ -55,7 +55,7 @@ export function useAuth() { }; const logout = async (): Promise => { - await account.deleteSession('current'); + await account.deleteSession({ sessionId: 'current' }); setCurrent(null); router.push('/'); }; @@ -219,4 +219,4 @@ export default function AuthForm({ handleSubmit, submitType }: AuthFormProps) { } ``` -You can now navigate to `/login` in your browser to check out the new page. \ No newline at end of file +You can now navigate to `/login` in your browser to check out the new page.