Skip to content

Commit

Permalink
Merge pull request #5 from phpfui/Docs
Browse files Browse the repository at this point in the history
Add prompt => consent to get refresh token
  • Loading branch information
asadku34 authored Feb 22, 2023
2 parents 74b6a9c + d5738bc commit c6e4dc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ if (!isset($_GET['code'])) {
'ZohoCRM.modules.ALL', //Important: Define your data accessability scope here
'ZohoCRM.settings.ALL',
],
'access_type' => 'offline' //Important: If you want to generate the refresh token, set this value as offline
'access_type' => 'offline', //Important: If you want to generate the refresh token, set this value as offline
'prompt' => 'consent' //Important: Will not return a refresh token if this is not also set
]);

$_SESSION['oauth2state'] = $provider->getState();
Expand Down

0 comments on commit c6e4dc9

Please sign in to comment.