Enjoy Programming

Iron session ๋ณธ๋ฌธ

JavaScript/Node.JS

Iron session

LEETAEEON 2022. 5. 15. 22:48

https://github.com/vvo/iron-session

 

GitHub - vvo/iron-session: ๐Ÿ›  Node.js stateless session utility using signed and encrypted cookies to store data. Works with N

๐Ÿ›  Node.js stateless session utility using signed and encrypted cookies to store data. Works with Next.js, Express, NestJs, Fastify, and any Node.js HTTP framework. - GitHub - vvo/iron-session: ๐Ÿ›  No...

github.com

๊ธฐ์กด jwt ํ† ํฐ์€ ์•”ํ˜ธํ™” ๋˜์ง€ ์•Š๋Š”๋‹ค.

 

์ด๋Ÿฌํ•œ ๋‹จ์ ์„ ๋ณด์™„ํ•ด์ค„ iron session

 

iron session ?

์„œ๋ช…, ์•”ํ˜ธํ™”๋œ ์ฟ ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” nodejs stateless ์„ธ์…˜ ๋„๊ตฌ

 

payload  -> payload encrypt -> send cookie && every call api to server  with cookie --> server decrypt 

 

์ด๋ฐฉ์‹์ด๋‹ค. ์•”ํ˜ธํ™”๊ฐ€ ๋˜๊ธฐ์— ์œ ์ €๊ฐ€ ์ •๋ณด๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†๋‹ค. ์„ธ์…˜์„ ์œ„ํ•œ ๋ฐฑ์—”๋“œ๋ฅผ ๊ตฌ์ถ•ํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค.