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
MIGRATION
Switching Code Base
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 Facebook
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
DEVELOPER CENTER
...
data-Attributes
$pinc.auth

data-on-logged-in

5min

Supported Types

  • Javascript function callback e.g "_loggedInCallback()"

Used by

  • $pinc.ui.auth



What does it do?

The attribute definition calls a globally accessible JavaScript function.



Example

HTML
JS
|

<head>
    <script>
        function _loggedInCallback(){
            //do something now that your user is logged in
            console.log($pinc.auth.profile)
        }

    </script>
    <script src="https://labs.pathfix.com/helper.js" 
        data-on-logged-in="_loggedInCallback()"
    ></script>
</head>




Updated 03 Mar 2023
Did this page help you?
PREVIOUS
data-auth-providers
NEXT
data-on-logged-out
Docs powered by
Archbee
TABLE OF CONTENTS
Supported Types
Used by
What does it do?
Example
Docs powered by
Archbee