updateSessionUser method

  1. @override
Future<SessionV1> updateSessionUser(
  1. String? correlationId,
  2. String sessionId,
  3. dynamic user
)
override

Updates a session's user.

  • correlation_id (optional) transaction id to trace execution through call chain.
  • user an user to be updated. Return (optional) Future that receives updated session Throws error.

Implementation

@override
Future<SessionV1> updateSessionUser(
    String? correlationId, String sessionId, user) async {
  var timing = instrument(correlationId, 'sessions.update_session_user');
  var session =
      await controller.updateSessionUser(correlationId, sessionId, user);
  timing.endTiming();
  return session;
}