2

I am able to generate OAuth tokens from this URL successfully.

However, I can see both refresh token and access token is generated in the call.

Can we remove the refresh token during the OAuth call so that only access token is generated.

I have seen this feature of suppressing and disabling refresh token in other OAuth servers.

Does it apply in RingCentral too?

Grokify
  • 15,092
  • 6
  • 60
  • 81

1 Answers1

2

Yes, refresh tokens can be disabled by setting the TTL (time to live) for the refresh_token_ttl to zero:

refresh_token_ttl=0

example:

username=<username>&password=<password>&extension=<extension>&grant_type=password&refresh_token_ttl=0
Grokify
  • 15,092
  • 6
  • 60
  • 81
Anirban Sen Chowdhary
  • 8,233
  • 6
  • 39
  • 81