---
title: $pinc.auth
slug: YlG--dollarpincauth
docTags: 
createdAt: 2020-06-10T08:37:06.000Z
---

### Dependencies

- $pinc
- $pinc.oauth

### Script module

- pinc.auth.min (includes the dependencies)

## What does it do?&#x20;

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

- Auto Login - This task happens when the page is loaded and results in a callback to one of the following...
  [data-on-logged-in](docId\:ruHMB8bRObe3_nrwyEGEK)
  [data-on-logged-out](docId\:E2ZqvjgkdAfqzLqHZ2Su1)
- 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](https://docs.pathfix.com/properties) .&#x20;





