News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
What is the lifespan of tokens ffrom ringcentral oauth server
Tags: authentication
Aug 4, 2019 at 1:15pm   •   1 replies  •  0 likes
Sameer Roy

I am getting both access_token and refresh_token for oauth call.

Is there any documented life span for both the tokens generated?

What is the longevity of access_token and refresh_token? Can this be configurable?

Is there some way I configure the oauth call not to generate refresh_token? I have seen in other oauth servers that we can only get access_token and avoid refresh_token being generated.

How can I do here?

1 Answer
answered on Aug 4, 2019 at 1:38pm  

Let's answer one by one.

Is there any documented life span for both the tokens generated?

What is the longevity of access_token and refresh_token?

Access token lifetime is 3600s = 1 hour

Refresh token lifetime is 7 days(1 week)

you can refer: https://forums.developers.ringcentral.com/articles/1426/generating-access-token-and-refresh-token-and-effi.html

Can this be configurable?

I don't think so

Is there some way I configure the oauth call not to generate refresh_token?

Yes, you can. Just use refresh_token_ttl=0 in the OAuth request along with your other parameters like grant_type, extension etc.

You will not display refresh_token as it will expire before it display in response and you can skip that in your API response.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us