How to use better auth to only allow specific email and pswd to access the dashboard?

I am building a dashboard for cms of a frontend heavy project and I need to allow only member of my org to access the dashboard..how to achieve this?
Solution:
You can use middleware in nextjs to check every request coming to dashboard. Then you can implement user.role from admin plugin.
Jump to solution
1 Reply
Solution
tormentor
tormentor4d ago
You can use middleware in nextjs to check every request coming to dashboard. Then you can implement user.role from admin plugin.

Did you find this page helpful?