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
Refresh Tokens - Are they supposed to change?
Tags: authentication, auth
Jul 7, 2020 at 7:15am   •   4 replies  •  0 likes
Tony Valenti

When calling Refresh(RefreshToken) I expect that a new access token is provided but it looks like a whole new refresh token is being provided too. Is that intentional?

4 Answers
answered on Jul 14, 2020 at 4:17am  

@Phong Vu is there a way to get a new access token without refreshing the refresh token?


 0
answered on Jul 13, 2020 at 7:46am  

Every time you use a valid/unexpired refresh token to exchange for a new access token, you will get a new access token and a new refresh token. The new access token will be valid again for 3600 seconds and the new refresh token will be valid again for 7 days. This helps you avoid re-login as long as you handle this well and your refresh token is not expired.


 1
answered on Jul 13, 2020 at 7:28am  

@Anirban Sen Chowdhary -

Is there a type of refresh token that is persistent? One that won't change every time?

I'm trying to avoid concurrent uses of our app stepping on each other's toes when it comes to the refresh token.


 0
answered on Jul 7, 2020 at 9:21am  

Yes, if you generate an access token from a refresh token in exchange the refresh token get expired so that no more access token can be generated from that same refresh token.

However, it can be used as long as the access token remains active and get expired once a new access token gets generated.


 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