Route based access control
Hi!
Could someone help me how to implement role based access control?
First to simply allow some routes for logged in users, and then how to create admin routes?
I've read the documentation, and I know that the middleware should be used for it, but I don't really have that much knowledge about this.
I'm using NextJS 15.2 and the new better auth 1.2.
Thank!
Could someone help me how to implement role based access control?
First to simply allow some routes for logged in users, and then how to create admin routes?
I've read the documentation, and I know that the middleware should be used for it, but I don't really have that much knowledge about this.
I'm using NextJS 15.2 and the new better auth 1.2.
Thank!
