website logo
⌘K
GETTING STARTED
Getting started with Pathfix
Introduction
OAuth Connect Page
Custom Redirect Domain
Monitoring Activity
Workspace
Extensions
Security
Notifications
Event Callback
Scopes
Provider reference
Access tokens
SDK's
BUBBLE.IO INTEGRATION
Bubble.io Documentation
ADALO INTEGRATION
Adalo Documentation
Adalo User Authorization
Adalo API Call
DEVELOPER CENTER
Developer center
Pathfix Consent Screen (preview)
Module dependencies
Step-by-Step
General
JavaScript
PROVIDER SETUP DOCS
Integration Setup Docs
Identity Auth
Integrating with Airtable
Integrating with Box
Integrating with Hubspot
Integrating with GitHub
Integrating with Google Tasks
Integrating with Instagram Graph API
Integrating with LinkedIn
Integrating with Pipedrive
Integrating with Quickbooks
Integrating with Stripe
Integrating with Stripe-Server
Integrating with Slack
Integrating with TikTok
Integrating with Typeform
Integrating with WooCommerce
Integrating with Xero
Integrating with Zoom
Docs powered by archbee 
6min

$pinc.oauth

The pinc.oauth library gives you the ability to modify your user experiences by invoking event callbacks events.

Attach an event handler once the user consents

Attach an event handler to watch post user consent. This is a positive event and only fires if consented.

JS
|

Handler arguments (data)

JSON
|

Check if the user has previously consented an integration

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
|

Arguments

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.

Callback Response

Boolean

Updated 17 Nov 2020
Did this page help you?
Yes
No
UP NEXT
Events
Docs powered by archbee 
TABLE OF CONTENTS
Attach an event handler once the user consents
Check if the user has previously consented an integration
Arguments
Callback Response