getPrivateUrlForUid function

String? getPrivateUrlForUid(
  1. String? uid
)

Implementation

String? getPrivateUrlForUid(String? uid) {
  CubeSession? currentSession = CubeSessionManager.instance.activeSession;
  if (!CubeSessionManager.instance.isSessionExpired(currentSession)) {
    return "${CubeSettings.instance.apiEndpoint}/blobs/$uid?token=${currentSession!.token}";
  } else {
    return null;
  }
}