hack4impact-uiuc / h4i-recruitment

H4I recruitment platform
https://h4i-recruitment.vercel.app
17 stars 3 forks source link

Migrate Authentication to Cookies #155

Open tko22 opened 6 years ago

tko22 commented 6 years ago

It's currently using sessionStorage, but you can't access it in server rendering, which limits the power of Next.js. Migrating to storing keys in cookies would allow the server to view authentication keys there. Heck, maybe we can change up auth as a whole and make it more secure. that's super low priority though.

Example: https://github.com/zeit/next.js/pull/5821

tko22 commented 5 years ago

This would allow for server side fetching in resources, allowing for lazy loading in next.js