# Get oAuth token without redirecting user to login page

**URL:** <https://devforum.zoom.us/t/get-oauth-token-without-redirecting-user-to-login-page/9428>\
**Category:** API and Webhooks\
**Created:** [March 24, 2020, 11:46am UTC](https://devforum.zoom.us/t/get-oauth-token-without-redirecting-user-to-login-page/9428 "2020-03-24T11:46:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawn](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@shawn](https://devforum.zoom.us/u/shawn)\
**Post date:** [March 24, 2020, 11:46am UTC](https://devforum.zoom.us/t/get-oauth-token-without-redirecting-user-to-login-page/9428/1 "2020-03-24T11:46:21Z")

</div>

**Description**  
how to get auth token without user login

**Error**  
as i can’t use this api on client side, it gives CORS error

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
php and js

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:  
I have an page  
[https://www.fresnolecture.com/webinar-regen/#lp-pom-block-9](https://www.fresnolecture.com/webinar-regen/#lp-pom-block-9)  
I want to show list of webinaars available and date time from them direct from the api.  
but i got an error of CORS.  
then i found out on your fourms that this api is server side,  
so now i am making an script which will get token and shown me the listings and all.

now the issue i am facing with is that, how to hndle login from server side. That’s a bit of complicated process. Please help me with it.

Waiting for your reply on it.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 24, 2020, 7:31pm UTC](https://devforum.zoom.us/t/get-oauth-token-without-redirecting-user-to-login-page/9428/2 "2020-03-24T19:31:37Z")

</div>

Hey @shawn, thanks for posting and using Zoom!

It sounds like for your use case the best flow would be to use a JWT Token.

1. [Create a JWT App](https://marketplace.zoom.us/develop/create).

2. [Generate a JWT Token](https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom).

3. Call the respective API endpoint and pass in your JWT Token as the Authorization Bearer:

Let me know if that helps!

-Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:36pm UTC](https://devforum.zoom.us/t/get-oauth-token-without-redirecting-user-to-login-page/9428/3 "2020-08-21T19:36:24Z")

</div>

Closed on August 21, 2020, 7:36pm UTC


