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.