forked from eatvio/eatvio_app
New token format
This commit is contained in:
@@ -91,7 +91,7 @@ class AuthScreen extends StatelessWidget {
|
|||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
var res = await jsonDecode(response.body);
|
var res = await jsonDecode(response.body);
|
||||||
final box = await Hive.openBox('token');
|
final box = await Hive.openBox('token');
|
||||||
final token = res['token']['plainTextToken'];
|
final token = res['token'];
|
||||||
box.put('token', token);
|
box.put('token', token);
|
||||||
Navigator.pushNamed(
|
Navigator.pushNamed(
|
||||||
context,
|
context,
|
||||||
@@ -171,4 +171,4 @@ class AuthScreen extends StatelessWidget {
|
|||||||
|
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user