logoutWithGuard method

Future<void> logoutWithGuard(
  1. String guardName,
  2. String token
)

Logs out with a specific guard

guardName The guard to use for logout token The token to invalidate

Implementation

Future<void> logoutWithGuard(String guardName, String token) async {
  final guard = _getOrCreateGuard(guardName);
  await guard.logout(token);
}