191 viewsNext Amazona
0 Comments

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:
https://github.com/basir/next-amazona-v2/blob/main/types/next-auth.d.ts#L7

Bassir Answered question February 5, 2024

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

Juan Manuel Edited answer January 29, 2024