-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
I'm submitting a...
[ ] Regression
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[x] Question
First, thank for your sharing this code. There are very few good examples of auth with NestJS, and so I was grateful to find this one - which seems very nicely implemented.
In looking through the code, I had some questions to help me understand the choices.
Questions
- Unless I have missed something, there is a lot of custom auth code in auth.service.ts. It looks like this is used instead of calling
passport.authenticate('facebook-token'), which is the documented approach. Is this approach taken for a specific reason? - What was the reason for using 'passport-facebook-token' strategy/package over the 'passport-facebook' strategy/package published by the author of Passport.js? (same for twitter)
- Have you considered any code to mitigate CRSF attacks, or is there something about this implementation that already mitigates this?
- What was the reason for using Express Middleware directly instead of through the Nest Middleware?
- What was the reason you decided to use custom JOI validation instead of the pipe based NestJs Object Schema Validation
Thanks for any answers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels