Events
4 min
- consented
- consentRedirect
- notConsented
- revoked
- integrations
consented
The event fires immediately after your user successfully authorizes with an Integration provider
Example
$(document).ready(()=>{
$pinc.events.on("$pinc.oauth","consented",(data)=>{console.log(data)},true);
})
Handler Arguments
{
provider:"providername"
}
notConsented
The event fires if the user starts the OAuth authorization process but does not complete the authorization successfully or closes the window midway.
Example
$(document).ready((){
$pinc.events.on("$pinc.oauth","notConsented",(data)=>{console.log(data)},true);
})
Handler Arguments
{
provider:"providername"
}
integrations
The event fires after configurations are loaded and the $pinc.oauth component is ready to work with.