clearAllSessions method
Clears all sessions
Implementation
Future<void> clearAllSessions() async {
try {
final directory = Directory(_sessionDir);
if (await directory.exists()) {
await directory.delete(recursive: true);
}
print('All entraid sessions cleared');
} catch (e) {
print('Failed to clear all sessions: $e');
throw DSAuthError('Failed to clear all sessions');
}
}