---
title: Events
slug: events
docTags: 
createdAt: 2020-04-06T11:16:05.000Z
---

- consented
- consentRedirect
- notConsented
- revoked
- integrations

## consented

The event fires immediately after your user successfully authorizes with an Integration provider

&#x20;**Example**

:::CodeblockTabs
```javascript

$(document).ready(()=>{
	$pinc.events.on("$pinc.oauth","consented",(data)=>{console.log(data)},true);
})

    
```

```tcl
```
:::

**Handler Arguments**

```javascript

{    
    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**

```javascript

$(document).ready((){
		$pinc.events.on("$pinc.oauth","notConsented",(data)=>{console.log(data)},true);
	})
    

```

**Handler Arguments**

```javascript

{    
    provider:"providername"
}

```

## integrations

The event fires after configurations are loaded and the $pinc.oauth component is ready to work with.

