Nimit Haria

Results 142 comments of Nimit Haria

Someone had worked on bookmarking the tracks, I think this is the same thing, so not really needed I guess.

Yeah, you're correct, my bad

I think admin should not be a different table, it should just be a role in user. You can refer cms repo for this

Hey @hkirat, should we use Prisma Adaptor for nextauth?

> working on it !! Already done in #129

Follow the steps mentioned, there is a step which uses seed.ts file to seed the data to your db.

Can't we add a role in the authOptions callback, Verify the role from `.env` file Similar to how it's done in cms And in /app/admin, add a layout.tsx file which...

Will have to manually add the admin boolean to the db.

Determining admin role can be done anyhow, but adding the check in layout.tsx makes more sense. This way, there will be a central check done for admin. Anyone can add...