The recent tutorials on how to get authentication and authorization working in Slash GraphQL using auth0 have been fantastic! I look forward to more of these which cover the realities encountered when building an app.
Are there any best practices on how to handle images in this paradigm?
Scenario 1: Product images for a shopping app (anyone can view)
Scenario 2: Photo album app (viewing restricted)
Thanks, I agree, storing the links in dGraph and the files in S3 or similar makes sense.
For Scenario 1 where anyone can view the images, I don’t think much more is needed.
But for Scenario 2, where we need to secure the images, what are some of the things that need to be considered and is there an easy way to integrate this? (similar to how using auth0 addresses all kinds of patterns like logging in, forgotten password, etc)
(And thank you for that link. It mentions a service called Cloudinary that I will look into further.)
for scenario 2, I would investigate looking at making a function that grabs the images if approved only and then delivers them through the graphql API itself.