# iOS Key Chain issue

**URL:** https://community.particle.io/t/ios-key-chain-issue/48121
**Category:** Developer Tools
**Tags:** photon
**Created:** [February 28, 2019, 2:08pm UTC](https://community.particle.io/t/ios-key-chain-issue/48121 "2019-02-28T14:08:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rakeshjiyani](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rakeshjiyani](https://community.particle.io/u/rakeshjiyani)
#### Post date: [February 28, 2019, 2:08pm UTC](https://community.particle.io/t/ios-key-chain-issue/48121/1 "2019-02-28T14:08:32Z")

</div>

Hello Team,

I am creating an iOS app. I am making app for user who used my hardware device.

For this they have to register account and then login with it.

I am following documentation link with below:

[https://docs.particle.io/reference/SDKs/ios/#requirements](https://docs.particle.io/reference/SDKs/ios/#requirements)

From that code i am not getting the what is the function YourappnameKeys()??

func application(\_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -\> Bool {

```
var keys = YourappnameKeys() // what is function implementation? Here? when we do our project name keys then it show error? 
ParticleCloud.sharedInstance().OAuthClientId = keys.oAuthClientId()
ParticleCloud.sharedInstance().OAuthClientSecret = keys.oAuthSecret()

return true

```

}  
We also get iOS KeyChain Disabled in console. Please do needful help urgently.

Thank you!

---

<div class="post-metadata">

### Author: ![rakeshjiyani](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rakeshjiyani](https://community.particle.io/u/rakeshjiyani)
#### Post date: [February 28, 2019, 2:14pm UTC](https://community.particle.io/t/ios-key-chain-issue/48121/2 "2019-02-28T14:14:33Z")

</div>

When we put hard code key and password then it give error Organization not found for user’s role.
