DEVELOPER CENTER
...
JavaScript
Libraries

$pinc.auth

3min

Dependencies

  • $pinc
  • $pinc.oauth

Script module

  • pinc.auth.min (includes the dependencies)

What does it do?

The primary function of this module is to check all supported authentication providers and provide a session state and profile to work with.

  • Auto Login - This task happens when the page is loaded and results in a callback to one of the following... data-on-logged-in data-on-logged-out
  • Profile Retrieval - This happens internally if the Auto Login senses that there is some cached profile.
  • Profile Mapping - If the Profile Retrieval is successful, the module maps the profile into 5 common properties and assigns the rest to $pinc.auth.profile .





Updated 03 Mar 2023
Doc contributor
Doc contributor
Did this page help you?