# How to get and refresh the SSO token for loginWithSSOToken?

**URL:** <https://devforum.zoom.us/t/how-to-get-and-refresh-the-sso-token-for-loginwithssotoken/45413>\
**Category:** Meeting SDK\
**Created:** [March 11, 2021, 6:33am UTC](https://devforum.zoom.us/t/how-to-get-and-refresh-the-sso-token-for-loginwithssotoken/45413 "2021-03-11T06:33:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackz314](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackz314/32/24376_2.png) [@jackz314](https://devforum.zoom.us/u/jackz314)\
**Post date:** [March 11, 2021, 6:33am UTC](https://devforum.zoom.us/t/how-to-get-and-refresh-the-sso-token-for-loginwithssotoken/45413/1 "2021-03-11T06:33:40Z")

</div>

**Description**  
How to get and refresh the SSO token for loginWithSSOToken?

I’m building an app that I want to sign enterprise users in using SSO, however, I can’t find any documentation on where/how to get the SSO token needed for the loginWithSSOToken method. Also, after I get the token, how long is it valid for (if it’s not up to the individual SSO providers)? And how can I refresh the token (is there something like a refresh\_token in OAuth)?

Just to save some time, I looked at this post [How to get the SSO Token for use with loginWithSSOToken? - #4 by Michael\_Condon](https://devforum.zoom.us/t/how-to-get-the-sso-token-for-use-with-loginwithssotoken/38024/4), but it isn’t very clear on what exactly that “at some point” is, is there no documentation on this at all?

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 11, 2021, 10:37pm UTC](https://devforum.zoom.us/t/how-to-get-and-refresh-the-sso-token-for-loginwithssotoken/45413/2 "2021-03-11T22:37:33Z")

</div>

Hey @jackz314,

Thanks for using the dev forum!

Before you can give the SDK an “SSOToken” you must first configure your account and SSO identity provider with Zoom. Instructions for doing this can be found here: [Quick start guide for SSO – Zoom Help Center](https://support.zoom.us/hc/en-us/articles/201363003-Quick-start-guide-for-SSO). You will also need a vanityURL from Zoom: [Guidelines for Vanity URL Requests – Zoom Help Center](https://support.zoom.us/hc/en-us/articles/215062646-Guidelines-for-Vanity-URL-Requests). After that, you will receive the token from the reply URL from your identity provider. Appended to your replay URL will be a parameter “zt=” and the token is after that. Pass that token into the loginWithSSO function of the SDK. As for refreshing, this is not handled by the SDK and must be handled by the developer.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 11, 2021, 8:37am UTC](https://devforum.zoom.us/t/how-to-get-and-refresh-the-sso-token-for-loginwithssotoken/45413/3 "2021-04-11T08:37:46Z")

</div>

Closed on April 11, 2021, 8:37am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
