Secure serverless auth mechanism
arthtyagi opened this issue · comments
Arth Tyagi commented
Currently, auth is handled using cookies on the client side (non-http).
- Vercel Serverless Function.
- Replace existing usage of non-httpOnly cookies.
- Cookies.set -> serverlessCookie(key,value,expiry)
- Cookies.get -> getCookie(key)