Thanks
My question is how this feature has been implemented on the frontend and the backend?
Thanks for reading
What will be the best approach to upload the file?
1. Upload the file from frontend to S3? 2. First upload the file to backend and then upload the file from backend to S3?
What will be the best option? In my opinion the first approach is better as it doesn't require extra load on backend if the file is larger, but I am not sure about the security issues to keep the AWS credentials in the frontend code.
Any suggestions are welcome :)
First of all, I want to authenticate my API endpoints via JWT tokens ( and not by session cookies ). So, I disabled the default `session: false`.
I created all routes `/auth/github` and `/auth/github/callback` and attached them with my react frontend.
So, it works. I am prompted with github sign-in. And github gives me my user information, access token. refresh token etc.
Now my questions are
what should I have to do next?
What informations do I need to store in my database?
Do the `accesstoken` provided by github enough for me to secure the API routes or Do I have to generate *JWT* token (with the payload provided by github) and then follow the common JWT authentication procedure?
Thank you for your time to listen to my question. I am confused about passport.js and integration between frontend and backend.