NJIT-IS332-Fall2023 / is322-next-app

sample repo for next app starter
https://is322-next-app.vercel.app
1 stars 0 forks source link

authentication implementation #8

Open hariDasu opened 11 months ago

hariDasu commented 11 months ago

initial figma community designs show various options for auth

although auth may seem like a reach to get done in 4 weeks (complete either just before or after thanksgiving), I believe that our # of available resources and ability to share knowlege/code amongst each other should make this feature feasible, at the very least with simple email/password basic auth for now

we can phase in oauth providers under future feature flags or target future versions (2.0 etc)

things to consider:

EbramMekhail commented 11 months ago

Would the Class prefer we use auth0 or a Custom backend for authentication.

  1. Pros for auth0
    • Simple Implementation
  2. Cons for auth0
    • Not Customizable
    • Redirects User to auth0 website.
bentzi-shuster commented 11 months ago

another way to do it is Supabase - it lets us customize the login UI (we add elements to the page that redirects tot he login endpoint) and has code examples at the cost of fewer options for how the auth works

EbramMekhail commented 11 months ago

another way to do it is Supabase - it lets us customize the login UI (we add elements to the page that redirects tot he login endpoint) and has code examples at the cost of fewer options for how the auth works

Sure, I never heard of it before do you have any code, premade for it.

bentzi-shuster commented 11 months ago

yep, I used it in my personal project for this class. I got most of my code from here

EbramMekhail commented 11 months ago

Looks good lets go with it. But I don't know what the rest of the class wants.

hariDasu commented 10 months ago

https://dev.to/remusris/t3-stack-template-supabase-w-auth-db-and-shadcn-ui-basic-setup-2bl9

the class has spoken! (or not)

aaa373373 commented 10 months ago

I believe that developing our own backend and implementing our authentication logic may be excessive. Supabase offers a comprehensive set of tools, including authentication, authorization, and user data storage, right out of the box. Therefore, I recommend we opt for Supabase.