basic oauth finally but also more dependencies

This commit is contained in:
zoe 2022-06-30 18:57:14 +02:00
parent 4baacc751d
commit f6ea45d0e2
5 changed files with 21 additions and 10 deletions

View file

@ -125,13 +125,12 @@ class _AuthPageState extends State<AuthPage> {
icon: const Icon(Icons.arrow_back),
label: Text("back-button".i18n())),
FutureBuilder<http.Response>(
future: oauth.askKnownServerForAppRegistration(),
future: oauth.doOauthFlow(),
builder: (context, snapshot) {
if (snapshot.hasError) {
return Text("login-failed-snackbar-text".i18n());
} else if (snapshot.hasData) {
if (snapshot.data?.statusCode != null) {
print(snapshot.data?.body);
if (snapshot.data?.statusCode != 200) {
return Row(
children: [