Demo app Authorization does nothing

Description
When putting jwt token and press SDKAuth token application does nothing. The page is reloaded and get me back to the same input. The log shows a message AuthWithJwtToken 0 what looks like ok, no errors

Also not sure what I have to put into the first input when placeholder is ‘input domain’. Just left is as-is.

Which version?
MacOS 10.15.6
electron 5.0.2
v5.0.24433.0616
mac native sdk version:All_mac_sdk_5.0.24433.0616

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Build an SDK on mac build_nodeaddon_mac.sh
  2. Run demo app run_demo_mac.sh
  3. Fill in JWT and press SDKAuth button

Additional context
JWT Payload

{
    "appKey": <SDK key>,
    "iat": 1597249389795,
    "exp": 1597940672750,
    "tokenExp": 1597940672750
}

Thanks in advance

Hi @iMykola,

The domain should be “zoom.us”. Based on the description, your JWT token is invalid. Please note that the timestamp in the JWT token should be in second, if you generate the timestamp from JavaScript functions, you will have to convert it to seconds.

Thanks!

Hi @Carson_Chen! Thanks for your help!
I changed the payload to seconds

{
   "appKey": "",
   "iat": 1597312020,
   "exp": 1597916853,
   "tokenExp": 1597916853
  }

but the issue is still there. It doesn’t login

Hi @iMykola,

Thanks for the payload. Please try to limit the exp and the tokenExp to be within 2 days from the iat time.

Hope this helps. Thanks!

Hi @Carson_Chen
Set the exp and tokenExp to 1 day from iat but it doesn’t help

{
   "appKey": "",
   "iat": 1597400684,
   "exp": 1597487113,
   "tokenExp": 1597487113
  }

I use https://jwt.io/ for a token generation

Thanks

I found and issue.
I didn’t put correct SDK secret when generated JWT token on https://jwt.io/ :man_facepalming:
My bad

Thank you @Carson_Chen for your patience and support.
Kind regards

Glad to hear that! Then I will go ahead and close this thread. Please feel free to create another post if any other questions. :slight_smile: