mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
Updated the API Endpoints, API Calls, Data Models and cubits to the lateset changes from the backend
This commit is contained in:
@ -4,7 +4,7 @@ import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:syncrow_app/utils/helpers/decode_base64.dart';
|
||||
|
||||
class Token {
|
||||
static const String loginAccessTokenKey = 'access_token';
|
||||
static const String loginAccessTokenKey = 'accessToken';
|
||||
static const String loginRefreshTokenKey = 'refreshToken';
|
||||
|
||||
final String accessToken;
|
||||
@ -56,7 +56,8 @@ class Token {
|
||||
var storage = const FlutterSecureStorage();
|
||||
storage.write(
|
||||
key: loginAccessTokenKey, value: json[loginAccessTokenKey] ?? '');
|
||||
|
||||
storage.write(
|
||||
key: loginRefreshTokenKey, value: json[loginRefreshTokenKey] ?? '');
|
||||
//create token object ?
|
||||
return Token(json[loginAccessTokenKey] ?? '',
|
||||
json[loginRefreshTokenKey] ?? '', '', 0, 0);
|
||||
|
Reference in New Issue
Block a user