I’m wondering if anyones run into similar issues. I’m trying to implement gated routes by simply using redirects and user roles.
When I look at the docs, the example they give doesn’t seem to be valid.
For instance, I’ve got a route called /posts that I’m trying to gate with a role of admin the redirects file looks like this:
/posts/* 200! Role=admin
/posts/* / 401!
The validator doesn’t seem to like this rule but this is what was mentioned in the docs. Anyone have any idea?
I should also mention that my project is using NextJS!