Skip to content

Instantly share code, notes, and snippets.

View omer-os's full-sized avatar

omar chatin omer-os

View GitHub Profile
omer-os / gist:36b493ce6e7db6fe3b2b50d6b5ac96b6
Last active September 21, 2023 22:35
rule based authentication with nextjs, typescript, next-auth, prisma and postgressql db hosted in railway
View gist:36b493ce6e7db6fe3b2b50d6b5ac96b6
# Role-Based Authentication in Next.js with Prisma and Next-Auth
A step-by-step guide to setting up role-based authentication in a Next.js project using Prisma and Next-Auth.
## Step 1: Setting Up Your Next.js Application
pnpm create next-app ./
omer-os /
Last active May 8, 2023 21:53
How to Enable Tailwind CSS IntelliSense for Class-Variance-Authority in Visual Studio Code