asadku34 / oauth2-zoho

MIT License
6 stars 5 forks source link

Refreshtoken always returns null #4

Closed bencresty closed 2 years ago

bencresty commented 3 years ago

First of all thanks for providing this provider.

When doing exactly as the example says I get the access token and expires too, but the refreshToken is always returned as null no matter if I set the 'access_type' to 'offline' as stated in the README.

According to the documentation of Zoho Creator it should always return a refreshToken.

Is the example on the README accurate? Am I missing something? Is this a known issue?

Thanks in advance,

bencresty commented 3 years ago

Just found out it does work, but only when setting 'prompt' to 'consent'. So not an issue of the provider, but Zoho just isn't sending the refreshToken when prompt isn't set to consent. Maybe you could add this information to the README here as it's pretty confusing that the example on itself doesn't work.