Sdk authentication failed error, code 1

Description
After successfully running the demo SDK, I’m receiving error number 1 on the app launch, can’t log into an existing meeting hosted by another macOS app.

I’ve followed this: SDK Authentication Error Code 1
with no success. (I don’t understand point 1 about the .token…?)

Which version?
v5.2.42037.1112

Smartphone (please complete the following information):

  • Device: iPhone SE
  • OS: iOS 14
  • Version 14.2

Hey @Golanlan

Thank you for using the dev forum!

To initialize the sdk you must provide either a JWT token or your SDK Key and Secret. In the demo app navigate to SDKAuthPresenter.m and on line 28, there is a line of code:
authService.jwtToken = jwtToken;
which is where the jwtToken is passed into the SDK.
If you would like to use your SDK key and secret instead of a JWT, you can do so by replacing that line of code with
authService.clientKey = @“your sdk key”;
authService.clientSecret = @“your client secret”;

This should stop the error you are receiving. This path is fine for testing, however we highly encourage developers to use JWT instead.

Thanks!
Michael