Update
This commit is contained in:
parent
41b191bdd3
commit
5865aa445f
4 changed files with 7 additions and 4 deletions
|
@ -47,7 +47,7 @@ class Requests {
|
|||
await dio.post('https://streamlabs.com/api/v1.0/token', data: data);
|
||||
|
||||
if (response.statusCode == HttpStatus.ok) {
|
||||
jsonDecode(response.data).forEach((key, value) =>
|
||||
response.data.forEach((key, value) =>
|
||||
prefs.setString('credentials.$key', value.toString()));
|
||||
Logger.log(LoggerType.info, Requests,
|
||||
'Authorization success : ${response.data}');
|
||||
|
@ -98,7 +98,7 @@ class Requests {
|
|||
|
||||
if (response.statusCode == HttpStatus.ok) {
|
||||
Logger.log(LoggerType.info, Requests,
|
||||
'Authorization success : ${response.data}');
|
||||
'Authorization success : ${objectMap} ${response.data}');
|
||||
} else {
|
||||
Logger.log(LoggerType.error, Requests,
|
||||
'Authorization error : ${response.data} with $data and ${response.requestOptions.headers}');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue