# AuthWithJwtToken 5

**URL:** <https://devforum.zoom.us/t/authwithjwttoken-5/25328>\
**Category:** Electron\
**Created:** [July 27, 2020, 1:46pm UTC](https://devforum.zoom.us/t/authwithjwttoken-5/25328 "2020-07-27T13:46:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrixH](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrixh/32/12546_2.png) [@ChrixH](https://devforum.zoom.us/u/ChrixH)\
**Post date:** [July 27, 2020, 1:46pm UTC](https://devforum.zoom.us/t/authwithjwttoken-5/25328/1 "2020-07-27T13:46:42Z")

</div>

Problem: AuthWithJwtToken 5

I viewed the previous answered post about the same problem. BUT the answer is not clear and I have no idea on how to fix it. It says I have to generate JWT token manually, but I don’t know where should I find the SDK key and secret, from marketplace? and which type of app from marketplace? How do I organize those keys to generate the token?

However, the readme and docs are so vague that make people have no clue to go next step! I just realized that the info of how to use this sdk is insufficient and hard to get it started.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 29, 2020, 5:18am UTC](https://devforum.zoom.us/t/authwithjwttoken-5/25328/2 "2020-07-29T05:18:58Z")

</div>

Hi @ChrixH,

Thanks for using Zoom SDK. Here are the steps to get the SDK key/secret and generate the JWT token:

1. SDK key/secret: Follow the instruction here to create an SDK app and get the SDK key/secret: [https://marketplace.zoom.us/docs/guides/build/sdk-app](https://marketplace.zoom.us/docs/guides/build/sdk-app)
2. Once you have the SDK key/secret, follow this template to compose your payload for SDK initialization([https://github.com/zoom/zoom-sdk-electron/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token](https://github.com/zoom/zoom-sdk-electron/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token)):

- Header

```auto
{
  "alg": "HS256",
  "typ": "JWT"
}

```

- Payload

```auto
{
	  "appKey": "string", // Your SDK key
         "iat": long, // access token issue timestamp
         "exp": long, // access token expire timestamp
         "tokenExp": long // token expire timestamp, MIN:30 minutes
}

```

**The minimum value of `tokenExp` should be at least 30 minutes, and the `exp` should be later than the `tokenExp`, otherwise, SDK will reject the authentication request.**  
\*\* Signature

```auto
HMACSHA256(
  base64UrlEncode(header) + "." +
  base64UrlEncode(payload),
  "Your SDK secret here"
)

```

You could use [jwt.io](http://jwt.io) to generate the JWT token for testing.

Thanks for the feedback. We are working on improving the doc and will have a better doc as soon as we can.

Thanks!

---

<div class="post-metadata">

**Author:** ![Mikron](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mikron/32/18634_2.png) [@Mikron](https://devforum.zoom.us/u/Mikron)\
**Post date:** [March 27, 2021, 9:02am UTC](https://devforum.zoom.us/t/authwithjwttoken-5/25328/3 "2021-03-27T09:02:04Z")

</div>

I’ve tried to use the [jwt.io](http://jwt.io) - the screen simply flashes the loading screen after I click the SDKAuth, and then bounces back…
