From fb2a169276ffb411fbad87aa2d607ed727fa424b Mon Sep 17 00:00:00 2001 From: maxxkim Date: Thu, 1 Feb 2024 15:55:23 +0300 Subject: [PATCH] New token format --- lib/presentation/auth/auth_screen/auth_screen.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}