Update next-auth

This commit is contained in:
Jared Palmer 2023-06-16 12:03:09 -04:00
parent 187b55aad7
commit fef709a21d
6 changed files with 28 additions and 10 deletions

View file

@ -44,7 +44,7 @@ export async function getChat(id: string, userId: string) {
}
export async function removeChat({ id, path }: { id: string; path: string }) {
const session = await auth<{ stuff: string }>()
const session = await auth()
if (!session) {
throw new Error('Unauthorized')