signed method

Future<Response?> signed(
  1. Request req,
  2. dynamic user
)

Implementation

Future<Response?> signed(Request req, user) async {
  if (user == null) {
    return await HttpResponseSender.sendError(
        req,
        UnauthorizedException(null, 'NOT_SIGNED',
                'User must be signed in to perform this operation')
            .withStatus(401));
  }
}