Update next-auth
This commit is contained in:
parent
187b55aad7
commit
fef709a21d
6 changed files with 28 additions and 10 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue