svthalia / Reaxit

The latest ThaliApp built on Flutter.
GNU General Public License v3.0
11 stars 3 forks source link

Option to sign in to staging #457

Closed DeD1rk closed 1 year ago

DeD1rk commented 1 year ago

What

We need an option on the login screen to log into staging instead of production. I'm thinking maybe a cog icon in the topright corner, leading to a dialog where you can switch to/from staging, maybe with a switch widget. The switch widget should then be disabled if the app was built without production secrets, and default to production if possible.

Why

Google seems to be requiring permanent access to a demo account. Keeping an account active on production is not quite acceptable: we would have to hide it from the members list, and the testers need to be trusted seeing our member data and to not do anything destructive.

Modifying concrexit for this seems less elegant than just making the app support an alternative backend. It's also really convenient for testing.

Context

See an email or alert we got from the play store. Also https://github.com/svthalia/concrexit/issues/1637.

This needs to happen soon, I think google said they may take action by the start of october, so unless we want to deal with play store support, I think it would be great and feasible to make and release this in september.