Khanhtran47 / Sora

A web app for exploring movies, tv shows and anime built with Remix and NextUI
GNU General Public License v3.0
446 stars 183 forks source link

Test authentication #7

Closed Khanhtran47 closed 2 years ago

Khanhtran47 commented 2 years ago

Maybe using back for creating db for user :v

ctuanle commented 2 years ago

what to save in db ?

Khanhtran47 commented 2 years ago

@ctuanle ừ favorite film, film đang xem, account info, account setting (theme, color...)

ctuanle commented 2 years ago

nên dùng kiểu database nào nhỉ? Mongodb, redis, firebase, hay là mysql, postgresql :v

Khanhtran47 commented 2 years ago

@ctuanle này thì t chịu nơi, m thạo cái chi hay muốn test cái mới thì cứ quẩy thôi 😂

Khanhtran47 commented 2 years ago

@ctuanle https://github.com/clerkinc/remix-bossa-nova-stack auth mình xài supabase cho db với của cái ni đk

ctuanle commented 2 years ago

@Khanhtran47 okay, dùng cho mỗi auth thôi hay sao ?

Khanhtran47 commented 2 years ago

@ctuanle ừ kiểu để đăng nhập với get thông tin user trước, với có cái database để test, xài cho hết api của remix 😅 kiểu cái loader nơi root ấy, mình load thông tin cơ bản của user rồi xài đc cả cho toàn app luôn, k cần redux gì cả, phê vãi

ctuanle commented 2 years ago

@Khanhtran47 okey, làm issue này trước hay đợi app hoạt động ổn định rồi mới làm cái này ?

Khanhtran47 commented 2 years ago

@ctuanle m lm giờ cũng đc, tối về t lm cái dark mode rồi sau m thử thêm cái theme ng dùng chọn vô nơi thông tin user chọn thử m cứ nghiên cứu đi rồi sau cho t xem code học :v

ctuanle commented 2 years ago

@Khanhtran47 okei

ctuanle commented 2 years ago

@Khanhtran47 Hiện tại dùng clerk ở dev thì khỏe (#42). Còn nếu muốn dùng production thì phải có domain riêng (theo t đọc thì vậy) để trỏ về domain của clerk mới được.

Khanhtran47 commented 2 years ago

@ctuanle rứa k xài clerk đc à m 🥲 xài cái ni đk https://github.com/sergiodxa/remix-auth

ctuanle commented 2 years ago

@Khanhtran47 cũng được đều k thấy nó chỉ so sánh mật khẩu chỗ mô nơi, hoặc t k hiểu session based auth :v

Khanhtran47 commented 2 years ago

@ctuanle có tuto để xem lm theo cho dễ hiểu k hậy, nhiều cái lạ vại 😅

Khanhtran47 commented 2 years ago

@ctuanle https://github.com/mitchelvanbever/remix-auth-supabase :v k bt có chạy đk t search thấy có nhiều tuto lắm :v

ctuanle commented 2 years ago

@Khanhtran47 cái này có vẻ hợp lí hơn cái trước :v

ctuanle commented 2 years ago

@Khanhtran47 image well, nói vậy ai dám dùng lâu dài :v

Khanhtran47 commented 2 years ago

@ctuanle https://blog.openreplay.com/implementing-authentication-in-remix-applications-with-supabase https://dev.to/aaronksaunders/remix-authentication-using-remix-auth-package-2obl https://www.youtube.com/watch?v=-KiH8feOHSc&ab_channel=AaronSaunders https://codegino.com/blog/remix-supabase-auth

Khanhtran47 commented 2 years ago

@ctuanle t search remix auth with supabase ra mấy cái tuto ni

ctuanle commented 2 years ago

@Khanhtran47 ừm để t xem thử

Khanhtran47 commented 2 years ago

@ctuanle bên example của remix cũng có auth với supabase https://github.com/remix-run/remix/tree/main/examples/remix-auth-supabase