Home > Developer Guide > Hooks > Uncategorized Hooks
hook_civicrm_oauthReturn
Summary
After a user has approved an OAuth2 grant (in the "authorization code" flow), we may perform additional work.
Availability
Hook added in CiviCRM 5.32+ as part of a core-extension (oauth-client
).
Definition
hook_civicrm_oauthReturn($tokenRecord, &$nextUrl)
Parameters
$tokenRecord
: The newly created token record&$nextUrl
: The next page to redirect to
Returns
null