211 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
You are viewing 1 out of 2 answers, click here to view all answers.