blockUser method

Future<void> blockUser(
  1. int userId
)

Marks a user as blocked so that they can't log in, and invalidates their auth key so that they can't keep calling endpoints through their current session.

Implementation

_i2.Future<void> blockUser(int userId) => caller.callServerEndpoint<void>(
      'serverpod_auth.admin',
      'blockUser',
      {'userId': userId},
    );