388 viewsNext Amazona

I am getting this issue, it says session.user.isAdmin, but the property isAdmin does not exist on type User.

Some help, please.

Thank you.

Bassir Changed status to publish February 7, 2024

add isAdmin as property to User type here:

Bassir Answered question February 5, 2024

No problem now, I forgot to make the Types. Thank you

Juan Manuel Edited answer January 29, 2024