apply filte delay solved and refeesh token logic updated
This commit is contained in:
@@ -182,6 +182,22 @@ class LocalPreference {
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Clear only access token (keep refresh token)
|
||||
static Future<void> clearAccessToken() async {
|
||||
final db = await LocalDatabase().database;
|
||||
|
||||
await db.update(
|
||||
'user_tokens',
|
||||
{'access_token': ''}, // ← empty string, not null
|
||||
where: 'id = ?',
|
||||
whereArgs: [1],
|
||||
);
|
||||
|
||||
if (kDebugMode) {
|
||||
print('🧹 [LOCAL_PREF] Access token cleared');
|
||||
}
|
||||
}
|
||||
|
||||
/// Get refresh token
|
||||
static Future<String?> getRefreshToken() async {
|
||||
final db = await LocalDatabase().database;
|
||||
|
||||
Reference in New Issue
Block a user