Finish 0.1
This commit is contained in:
parent
4e8fd12fdc
commit
d19dc1ada7
3 changed files with 102 additions and 3 deletions
|
@ -103,7 +103,8 @@ class Step3 extends StatelessWidget {
|
|||
await dio.post('https://streamlabs.com/api/v1.0/token', data: data);
|
||||
|
||||
if (response.statusCode == HttpStatus.ok) {
|
||||
prefs.setString('credentials', response.data.toString());
|
||||
jsonDecode(response.data).forEach((key, value) =>
|
||||
prefs.setString('credentials.$key', value.toString()));
|
||||
Logger.log(LoggerType.info, this,
|
||||
'Authorization success : ${response.data}');
|
||||
showDialog(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue