Set up authentication using Passport's Discord strategy, referencing Together's implementation of this auth method
Sessions are stored in MongoDB
Set up a mock user for local environments; this way, we can test features of the app without needing to each obtain our own Discord OAuth2 keys
Added a login/logout button to the top right corner of the front page
Set up proxy URLs in order to enable all requests to endpoints starting with /auth to flow through to the backend (let me know if I should change this to /api and adjust auth endpoints accordingly; it's an easy change and would make it easier to send other requests in the future)
Testing
Manually tested logging in and out, verified that users and sessions are being correctly added and removed in MongoDB. Tested the mockUser functionality as well, everything works as expected with no errors being logged in the console on either the client or server side.
Let me know if you'd like anything added or changed!
Description
/auth
to flow through to the backend (let me know if I should change this to/api
and adjust auth endpoints accordingly; it's an easy change and would make it easier to send other requests in the future)Testing
Manually tested logging in and out, verified that users and sessions are being correctly added and removed in MongoDB. Tested the mockUser functionality as well, everything works as expected with no errors being logged in the console on either the client or server side.
Let me know if you'd like anything added or changed!