isTokenExpired static method
Checks if a token is expired.
Implementation
static Future<bool> isTokenExpired(String? token, {String? key}) async {
try {
final tokenData = await verifyToken(token, key: key);
return !tokenData.valid;
} catch (e) {
rethrow;
}
}