diff --git a/lib/presentation/auth/auth_screen/auth_screen.dart b/lib/presentation/auth/auth_screen/auth_screen.dart index 3e88e74d..15f2d909 100644 --- a/lib/presentation/auth/auth_screen/auth_screen.dart +++ b/lib/presentation/auth/auth_screen/auth_screen.dart @@ -91,7 +91,7 @@ class AuthScreen extends StatelessWidget { if (response.statusCode == 200) { var res = await jsonDecode(response.body); final box = await Hive.openBox('token'); - final token = res['token']['plainTextToken']; + final token = res['token']; box.put('token', token); Navigator.pushNamed( context, @@ -171,4 +171,4 @@ class AuthScreen extends StatelessWidget { return errors; } -} \ No newline at end of file +}