shihyuuuuuuu / ReadingAPP

0 stars 0 forks source link

Issue 25 #27

Closed RitaHsieh closed 1 month ago

RitaHsieh commented 2 months ago

Issue

Fixes #25 ## Changes - Set up authentication environment - 新增 `login_page`, 新增登入、註冊、google登入功能 - 讓使用者可以根據自己的userId讀到UserBook資料 - 更改security rule (見firebase console) - 更改User model: ``` String id; String name; String? email; String? avatarUrl; late final List logInMethods; ``` ## Test test user: - email: stella@gmail.com, passward: 123456 - create a new account - 用google account登入 ## Screenshots image image ## Additional Notes security rules 本來想改成限制user只能在登入之後抓到自己的user data,不過這樣寫之後每次有新的fetch data需求的時候都要改,所以想說等都寫完之後再一次改。