DEVELOPER CENTER
...
JavaScript
Libraries
$pinc.oauth
6min
The pinc.oauth library gives you the ability to modify your user experiences by invoking event callbacks events.
Attach an event handler to watch post user consent. This is a positive event and only fires if consented.
JS
|
Handler arguments (data)
JSON
|
The OAuth library allows you to check if the current user has already consented an integration. This is useful if you have a return user to your integration page and would like to alter the user experience base on whether your user has previously consented or not.
JS
|
provider | required | Internal name of the provider. Can be found here. |
userId | optional | Your end user id. This defaults to the value specified in data-user-id attribute of the script element. The value if specified acts as an override. |
Boolean