From 13f431c3ec9c67bb87dd3f3ee6fcd6b93019d5ce Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Tue, 6 Jun 2023 13:18:06 -0400 Subject: [PATCH] Try to upgrade next-auth --- components/ui/login.tsx | 3 ++- components/ui/user-menu.tsx | 4 ++-- pnpm-lock.yaml | 6 +++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/ui/login.tsx b/components/ui/login.tsx index c8ef08d..324eda8 100644 --- a/components/ui/login.tsx +++ b/components/ui/login.tsx @@ -1,5 +1,6 @@ 'use client' +import { signIn } from '@auth/nextjs/client' import { useRouter } from 'next/navigation' export function Login() { @@ -7,7 +8,7 @@ export function Login() { return ( diff --git a/components/ui/user-menu.tsx b/components/ui/user-menu.tsx index bec0bcc..05180e6 100644 --- a/components/ui/user-menu.tsx +++ b/components/ui/user-menu.tsx @@ -2,7 +2,7 @@ import { ThemeToggle } from '@/components/theme-toggle' import { type Session } from '@auth/nextjs/types' import * as DropdownMenu from '@radix-ui/react-dropdown-menu' -import { signIn } from '@auth/nextjs/client' +import { signOut } from '@auth/nextjs/client' import Image from 'next/image' import { useRouter } from 'next/navigation' @@ -84,7 +84,7 @@ export function UserMenu({ session }: UserMenuProps) { router.push('/api/auth/signout')} + onClick={() => signOut()} > Log Out diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 77644d4..289e875 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,8 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false overrides: '@auth/core': 0.0.0-manual.527fff6c