DEVELOPER CENTER
...
Libraries
$pinc.auth

Properties

2min
  • $pinc.auth.profile
  • $pinc.auth.providers



$pinc.auth.profile (readonly)

This property is available as a global variable and returns and empty JSON object if the auth module is not able to establish public profile information from any of the supported providers

Property

Description

firstName

The first name as returned by the Identity Provider

lastName

The last name as returned by the Identity Provider

name

Combines firstName and lastName

email

The email id as returned by the Identity Provider

provider

The name of the active providers that the current module is checking. See Provider reference for the complete list of supported providers. The names of the providers returned have the word "identity" removed. i.e. googleidentity changes to google

...

Other properties as returned by the Identity Provider

$pinc.auth.providers (readonly)

A comma separated list of providers that are currently active. The activated providers are linked to the data attribute. If not specified then the module checks for all linked client id and makes those available. If it cannot derive a list of providers, the module stays dormant and does not do anything.

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