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
We start by adding a custom field to your user data
After you have set up your custom oauth buttons and the workflows as per the documentation here Custom OAuth Button add the following workflows:
In this example, we will go through the process using Google Calendar as an example.
This workflow will check the consented status (where the user is connected)
Note: If you are working with more than 1 provider, you can add additional Step's and repeat the same condition
This workflow will check if the user connection has disconnected the provider from your app.
Note: If you are working with more than 1 provider, you can add additional Step's and repeat the same condition
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!