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

Add phone auth template #41

Closed ethanblake4 closed 2 years ago

ethanblake4 commented 2 years ago

This posts a request to /auth with the phone number you enter, but currently doesn't use the result since our account creation screen is not finished.

Also reverts a few changes from https://github.com/PullDating/FlutterApplication/commit/b64531ee2330f60cef5604fd3eaf98e77ecc552c to allow the app to work.

WilliamDormer commented 2 years ago

How can I verify that this is working? I switch to the correct branch, but when I run the app it goes straight to the card swiping page? Shouldn't it start with the login page? Also is there some way to determine if it is working or not?

ethanblake4 commented 2 years ago

@WilliamDormer oh right. well clearing the app data would do it, but I also just pushed a temporary commit that should fix that for now

WilliamDormer commented 2 years ago

I still cannot verify how it works. AuthResult does not seem to have a way to get strings representing the different parts of its result, so I cannot print a debug statement.

ethanblake4 commented 2 years ago

@WilliamDormer you mean AuthResponse? It should have fields for token, UUID and user_exists.

If you mean AuthRequest, it's a union so you have to use whenOrNull

WilliamDormer commented 2 years ago

Hmm, I don't know how to access those fields, but I trust you.