Director Of Technology at This Dot Labs |
Commit Your Code Conference Organizer |
The Programming Podcast & Modern Web Podcast Host
https://www.dthompsondev.com
Dallas, TX
Remember to keep it focused though. Don't just say "Audit my entire site". It's too broad and big. You have to section it.
Remember to keep it focused though. Don't just say "Audit my entire site". It's too broad and big. You have to section it.
www.dallassoftwaredevelopers.org/cohorts
Want to be a LEAD and donate some time to the community? Please apply here
forms.gle/c5UjhBx3skZ5...
Want to be a community member and work on a team? apply here
forms.gle/fvVPrhCT2TNU...
www.dallassoftwaredevelopers.org/cohorts
Want to be a LEAD and donate some time to the community? Please apply here
forms.gle/c5UjhBx3skZ5...
Want to be a community member and work on a team? apply here
forms.gle/fvVPrhCT2TNU...
If you JSON.stringify(safeUser), it will NOT contain passwordHash or isAdmin - they're genuinely not in the object.
return user as PublicUser; NO ERROR, BUT UNSAFE! This would be an issue but the original would not be
If you JSON.stringify(safeUser), it will NOT contain passwordHash or isAdmin - they're genuinely not in the object.
return user as PublicUser; NO ERROR, BUT UNSAFE! This would be an issue but the original would not be
const { passwordHash, isAdmin, ...safeUser } = user;
const { passwordHash, isAdmin, ...safeUser } = user;
bsky.app/profile/did:...
Accidentally exposing sensitive data!
Don't just hope you filtered your objects.
Enforce it at the type level!
Here's how TypeScript's Pick utility type acts as your security guard. It lets you create a "safelist" of properties.
bsky.app/profile/did:...