# No reason message string when calling loginStatus

**URL:** <https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278>\
**Category:** macOS\
**Created:** [November 17, 2020, 5:14pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278 "2020-11-17T17:14:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [November 17, 2020, 5:14pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/1 "2020-11-17T17:14:41Z")

</div>

When we call

'/\*\*

- @brief Specify to get the response of ZOOM SDK Login.
- @param loginStatus Notify user of login status.
- 

\*/

- (void)onZoomSDKLogin:(ZoomSDKLoginStatus)loginStatus failReason:(NSString\*)reason;’

and enter wrong username and password we’re not getting the reason message string from SDK.

Can you show how to correctly call this?

Thank you

Thomas

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 24, 2020, 6:24pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/2 "2020-11-24T18:24:46Z")

</div>

Hi @tmiskiew, thanks for the post.

Please provide the following information so that we may better assist you:

- A code snippet showing how you are assigning the delegate to `ZoomSDKAuthService`
- Are you not seeing the `onZoomSDKLogin` called at all? Or are the parameters nil?

Thanks!

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [November 24, 2020, 6:45pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/3 "2020-11-24T18:45:13Z")

</div>

Jon

func initZoomSDKWithJWT(token: JWTToken, completion: @escaping AuthCompletion) {  
authCompletion = completion  
sdk.initSDK(false)  
sdk.zoomDomain = Constant.ZoomSDK.kSDKDomain

```
let authContext = ZoomSDKAuthContext()
authContext.jwtToken = token.token
sdkAuthService = sdk.getAuthService()
sdk.getAuthService().delegate = self
sdkAuthService?.sdkAuth(authContext)

```

}

func login(  
\_ userName: String,  
password: String,  
rememberMe: Bool,  
completion: @escaping LoginCompletion  
) {  
loginCompletion = completion  
sdkAuthService?.login(userName, password: password, rememberMe: rememberMe)  
}

func onZoomSDKLogin(\_ loginStatus: ZoomSDKLoginStatus, failReason reason: String) {  
guard loginStatus == ZoomSDKLoginStatus\_Success,  
let user = sdkAuthService?.getAccountInfo()?.zoomUser else {  
guard loginStatus == ZoomSDKLoginStatus\_Failed else { return }  
loginCompletion?(  
Result.failure(  
NSError(  
domain: “ZoomAuthService”,  
code: Int(loginStatus.rawValue),  
userInfo: [“message”: reason]  
)  
)  
)  
return  
}

```
loginCompletion?(Result.success(user))

```

}

userInfo: [“message”: reason] this line returns empty reasons.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 24, 2020, 9:56pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/4 "2020-11-24T21:56:13Z")

</div>

Hi @tmiskiew, thanks for providing that information.

We were able to reproduce this on our end and are currently investigating this behavior. As soon as we have an update, I will be sure to let you know.

Thanks!

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [November 26, 2020, 4:30pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/5 "2020-11-26T16:30:35Z")

</div>

Any joy, @jon.zoom?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 30, 2020, 10:12pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/6 "2020-11-30T22:12:08Z")

</div>

Hi @tmiskiew,

Apologies, but I don’t understand the question in your last message.

That being said, we are still looking into this and will let you know once we have any updates.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 1, 2020, 6:53pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/7 "2020-12-01T18:53:14Z")

</div>

Hi @tmiskiew,

I have confirmed that we will be resolving this in a future release of the SDK. Be sure to keep an eye on our [release notes](https://devsupport.zoom.us/hc/en-us/sections/9481918285581-macOS) until then. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [December 26, 2020, 5:56pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/8 "2020-12-26T17:56:15Z")

</div>

@jon.lieblich Do I understand correctly that this problem hasn’t been addresses in release v5.2.42037.1112?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 28, 2020, 9:06pm UTC](https://devforum.zoom.us/t/no-reason-message-string-when-calling-loginstatus/36278/9 "2020-12-28T21:06:54Z")

</div>

Hi @tmiskiew, thanks for following up.

Yes, you are correct that this has not yet been added to the macOS SDK in the last release. There have been higher priority issues in need of addressing, so we have not yet determined a timeline for when this will be resolved.

Thanks!
