- Issues:
- Complex and abstract / First look of Authorization
- Solutions:
- Review materials, (refactor code, syntax, grammar)
- Issues:
- Complex and abstract / First look of cookies
- Solutions:
- Review materials, (refactor code, syntax, grammar)
- Issues:
- A lot of content in one learning
- Code syntax, a lot of callbacks
- Very complex terms (serialize and deserialize)
- Solutions:
- Potential to do two learnings
- Refactor to promises and/or async
- Passport Local Mongoose could remove this learning
- Issues:
- A lot of content in one learning (Slack and Google strategies)
- Because GDPR and Facebook, some of this strategies doesn't work anymore, because privacy or are in maintenance
- Code syntax
- Some of the methods or strategies are deprecated
- Solutions:
- Only use Google Login, nobody uses Slack for login in other account
- Refactor and review the code
- Update code for the updated strategies
- Sometimes we use firebase for social login
- Issues:
- Different code syntax between the starter code and the learning content
- If we do all these changes, we have to refactor the LAB too
- Solutions:
- Refactor and review the code, use the same standard and code syntax
Issues:Different code syntax between the starter code and the learning content
Solutions:Refactor and review the code, use the same standard and code syntax
- Passport | Sign Up, Login, Logout
- Why:
- It was difficult for us understand why async/await instead then/catch
- It was difficult to know where and when use async await
- It's difficult to identify the async function
- We don't understand what are the differences between the async code handlers
- It's a little bit disgusting to always have to use try/catch blocks for error handling
- The main objective of this lesson is encourage the use of async/await over other solutions, this optimize the code reading, reduce code and we can write async code with synchronous looking like code. We also use the latest of es+ which was a concurrent commentary in the LT's feedback
- Why:
- Passport Local Mongoose is magic, wonderful π
- With PLM, we bypass the abstract work of hashing, salting, serializing and deserializing stuff
- Why:
- A lot students uses maps
- Google API now requests a credit card, even if it is for development purposes only, many students don't want to put their bank information for this