BUBBLE SETUP DOCS
Capturing User Consent
8min
when using the pathfix custom oauth option, there may be times when you may need to capture the user consent status (if they have connected their accounts or not) the following documentation walks you through on checking and updating the user consented status against your user in bubble io depending on the method you are using, you will see the consented event option show up as either pathfixcustom (for those that have chosen to use a custom oauth button) or pathfix connector (\[default] for those who use pathfix rendered oauth buttons) create custom field start by adding a custom text field to your user data to save the user status in bubble io, go to data and user data click on create a new field and add the provider name workflow after you have set up your oauth connect buttons (pathfix rendered buttons or your own custom oauth button) add the following workflows in this example, we will go through the process using google calendar as an example connected workflow this workflow will check the consented status (where the user is connected) add new workflow elements > pathfix custom user consented step 1 would be to make changes to current user click on the + change another field select the created custom field google connected is equal to yes add a condition to change only when the consented provider matches (in this example we have used googlecalendar) note if you are working with more than 1 provider, you can add additional step's and repeat the same condition disconnected workflow this workflow will check if the user connection has disconnected the provider from your app add new workflow elements > pathfix custom disconnected step 1 would be to make changes to current user click on the + change another field select the created custom field google connected is equal to no add a condition to change only when the consented provider matches (in this example we have used googlecalendar) note if you are working with more than 1 provider, you can add additional step's and repeat the same condition using the consented status you can add workflows to show/hide elements on your page depending on the user's consented status for a provider example show the disconnect button if the user is connected and hide the connect button show connect button if the user is disconnected and hide the disconnect button the consented status updates automatically based on the connection status of the user no additional calls need to be made need help? reach out to us at support\@pathfix com and we would be happy to assist!