4mierS / next13

0 stars 0 forks source link

undefined session.user.email #1

Open 4mierS opened 4 months ago

4mierS commented 4 months ago

Bug

const currentUserEmail = session?.user?.emial!; not working

Problem is, emial is undefined


Usage

Do changes on profile


Concerned files

next13\app\dashboard

next13\app\api\auth[...nextauth]

4mierS commented 4 months ago
  1. idea is to change to name

Problem:

is not unique prisma.update needs an unique data

  1. using id instead email

Problme:

not working because not in type User need to change auto generated files !!!