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) {
  return persistence.updatePartially(correlationId, sessionId,
      AnyValueMap.fromValue({'request_time': DateTime.now(), 'user': user}));
}