๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

201219

ยท ์•ฝ 1๋ถ„

React Router Private Route#

https://medium.com/@thanhbinh.tran93/private-route-public-route-and-restricted-route-with-react-router-d50b27c15f5e

LocalStorage vs Cookies: Storing JWT#

https://dev.to/cotter/localstorage-vs-cookies-all-you-need-to-know-about-storing-jwt-tokens-securely-in-the-front-end-15id#:~:text=Local storage is vulnerable because,attacks involving your access token.


  • XSS ๊ณต๊ฒฉ

    • LocalStorage๋Š” ์™„์ „ํžˆ JavaScript๋กœ ์ œ์–ดํ•  ์ˆ˜ ์žˆ๊ณ , ํƒ€์‚ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ (React, jQuery, Google Analytics ...)์„ ํฌํ•จํ–ˆ์„ ๋•Œ, ๋กœ์ปฌ ์Šคํ† ๋ฆฌ์ง€์— ๋‹ด๊ธด Token์„ ๊ฐˆ์ทจ๋‹นํ•  ์ˆ˜ ์žˆ๋‹ค.

https://medium.com/@ryanchenkie_40935/react-authentication-how-to-store-jwt-in-a-cookie-346519310e81

https://bezkoder.com/react-express-authentication-jwt/

https://velog.io/@yaytomato/ํ”„๋ก ํŠธ์—์„œ-์•ˆ์ „ํ•˜๊ฒŒ-๋กœ๊ทธ์ธ-์ฒ˜๋ฆฌํ•˜๊ธฐ

React SignUp API#

https://medium.com/@hirukarunathilaka/signup-form-with-real-time-validation-using-react-typescript-6a7dfb3122b5

Express Cookie ๋‹ค๋ฅธ ๋„๋ฉ”์ธ๊ฐ„ ์ „์†ก#

https://www.zerocho.com/category/NodeJS/post/5e9bf5b18dcb9c001f36b275