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:Jump to solution
You can use middleware in nextjs to check every request coming to dashboard. Then you can implement user.role from admin plugin.
1 Reply
Solution
You can use middleware in nextjs to check every request coming to dashboard. Then you can implement user.role from admin plugin.