<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaSetup",
  "identifier" : "/documentation/MediaSetup/MSServiceAccount/clientSecret",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Media Setup"
    ],
    "preciseIdentifier" : "c:objc(cs)MSServiceAccount(py)clientSecret"
  },
  "title" : "clientSecret"
}
-->

# clientSecret

A string that authenticates the user’s setup request.

```
var clientSecret: String? { get set }
```

## Discussion

The Media Setup framework uses the `clientSecret` to create a token request. Hashed passwords are acceptable, but plaintext passwords are not.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)