csdojo-defaang / defaang

A website that will curate recently-asked interview questions from FAANG+. Currently inactive. Check out: https://github.com/ykdojo/OpenStream
MIT License
509 stars 120 forks source link

refactor: session and auth system #272

Closed Olyno closed 1 year ago

Olyno commented 1 year ago

🛠️ Fixes Issue

Closes #271

➕ Changes Introduced

This pull request is a refactor of the current session/auth system. It adds 2 Supabase dependencies, auth helpers, make requests on the client side instead of server side, and add a middleware/utility to secure route for only not authenticated people.

📄 Note To Reviewers

Feel free to close this pr if you're not interested. Feel free to discuss about this refactor if you're interested to go further.

📷 Screenshots

https://i.imgur.com/6xB1SCp.gif

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
defaang ✅ Ready (Inspect) Visit Preview Oct 7, 2022 at 3:29AM (UTC)
ykdojo commented 1 year ago

I added a comment about making requests on the server side at #271. Mind taking a look at that one first?

Olyno commented 1 year ago

I'm done.