AppSessionKeyUpdateRequest constructor

AppSessionKeyUpdateRequest({
  1. required String appId,
  2. required String accessToken,
  3. bool expiringSession = false,
  4. String? userId,
})

Implementation

AppSessionKeyUpdateRequest({
  required String appId,
  required String accessToken,
  bool expiringSession = false,
  String? userId,
}) : super() {
  url = 'users/${userId ?? state.userId}/session_key';
  body = {'expiring_session': expiringSession};
  headers = {'App-Id': appId, 'Access-Token': accessToken};
}