From eca265b58e396f5c74ca3658e14133d443c6680b Mon Sep 17 00:00:00 2001 From: arzakmiftakhul Date: Sat, 23 Nov 2024 14:26:13 +0700 Subject: [PATCH] add deleteToken method --- lib/flutter_session_jwt.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/flutter_session_jwt.dart b/lib/flutter_session_jwt.dart index 72d1597..d3b7324 100644 --- a/lib/flutter_session_jwt.dart +++ b/lib/flutter_session_jwt.dart @@ -139,4 +139,10 @@ class FlutterSessionJwt { } return DateTime.now().difference(issuedAtDate); //return } + + /// delete token + static Future deleteToken()async{ + await _storage.delete(key: _keyJwtToken); + } + }