Setting up Authorization (and improving docs?) #261
-
Hey there, Is it possible to update the documentation to include a section about Authorization and how to get started? I looked into the source code and noticed that Authorization.ts takes an Authenticator.ts instance. So, my initial thought is that I should use an authenticator instance when I don't care about permissions/roles, and the authorization instance when I do. I would really appreciate it if someone could take a look at the example below and nudge me in the right direction.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The Authorizer class is not documented on purpose, it’s not stable, I never really ended up using it so I’m not convinced it’s the best API for that use case which is why I don’t consider it stable and recommend it. |
Beta Was this translation helpful? Give feedback.
-
This is a good discussion topic. Actually, I had a similar question: Are there any examples that fully implement Remix Auth that should be referenced when building an app with Remix Auth? It's difficult to know exactly how all the files should be set up, at least in a way that will work long-term. So would be great to provide some example repos that show how to set this up correctly. Thanks. |
Beta Was this translation helpful? Give feedback.
The Authorizer class is not documented on purpose, it’s not stable, I never really ended up using it so I’m not convinced it’s the best API for that use case which is why I don’t consider it stable and recommend it.