PullDating / FlutterApplication

The frontend flutter application, contains code for IOS, Android and web
GNU Affero General Public License v3.0
3 stars 1 forks source link

Implement firebase auth to validate phone numbers #45 #52

Closed sselvanathan closed 2 years ago

sselvanathan commented 2 years ago

https://github.com/PullDating/FlutterApplication/issues/45

You can use the phonenumber +4917612345678 and the code 111111 to authenticate or use your own phone number if you are feeling lucky ;). After logging in you can log out by going into settings and then sing out, which will send a logout request to firebase and redirects you to the login page. If you are already logged in, you will automatically get redirected to the cards page.

WilliamDormer commented 2 years ago

the phone number you gave in the commit, shouldn't that be in the firebase console? How can I view the users that are authenticated

WilliamDormer commented 2 years ago

image

There seem to be some errors here. Did you pass the reCAPTCHA token? I remember them saying something about that in the documentation.

WilliamDormer commented 2 years ago

image Are these secrets that we should be protecting somehow (git commit or something)?

WilliamDormer commented 2 years ago

image We still need to save this information in the app, since that is what we're using for the authentication with our server. The firebase auth is just needed to send the SMS and then later push notifications.

WilliamDormer commented 2 years ago

Did you figure out how firebase lets our server know when they have successfully authenticated the application?

WilliamDormer commented 2 years ago

improved the logic and verified that it works with the backend. I think it's good to merge now.