GitHub dependance #96
Anthony-Jhoiro
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
Hey @Anthony-Jhoiro, thank you so much for taking the time to bring this up. I think this is an interested concept. As I've mentioned on Discord, I'm on parental leave but should be back soon. I'm tagging one of the maintainers here so you can further discuss the possibilities of this approach. I really like next-auth. We are adding a new feature soon which changes quite a lot of the code (#93). But feel free to create a proof-of-concept if you'd like and tag me here once you have it. Keep in mind we use Github for the image uploads previews as well. Cheers! |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ! I want to use Outstatic for more projects, but the authentication with GitHub creates significant issues when it comes to clients. I would prefer having the choice of the authentication method. A good library for that is
next-auth
, which I often use.I took a look at the repository, and I understood why it was built like this. This is done so the user is already identified with the GitHub API to make the required requests. The issue is that it blocks the addition of new authentication methods. I suggest decorrelating the user from the GitHub API authentication but keeping it for the history. I can see it done like this :
next-auth
to allow more possibilities for authentication with anisAuthorized()
method to check if the user can access the edition pagesIn my opinion, this would open a lot of possibilities for the new features and make the code a lot clearer
What do you think of this idea?
I looked at the discussion #54, but I wasn't sure if it fits. I can still change it if needed
Beta Was this translation helpful? Give feedback.
All reactions