basic oauth finally but also more dependencies
This commit is contained in:
		
							parent
							
								
									4baacc751d
								
							
						
					
					
						commit
						f6ea45d0e2
					
				
					 5 changed files with 21 additions and 10 deletions
				
			
		|  | @ -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: [ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue