Snapshot of the remote profile details captured when a user connected a social login provider to their account. Wraps the raw details stored on a SignatureCredential together with the provider name, the remote user's id, and the path used to pull a display name out of the details map. Instances are built on demand by SocialLoginApp.getOAuthDetails and are read-only.
Properties
| Property | Returns | Description |
|---|---|---|
| details | Map | Raw profile details returned by the remote provider when the account was connected, parsed from the credential's stored JSON. Null if the credential has no stored details. |
| displayNamePath | String | Path used to pull a display name out of the details map. Falls back to "displayName" when the provider this credential belongs to does not configure its own path. |
| provider | String | Identifier of the provider this connection was made through, for example "facebook" or "twitter". |
| userId | String | The remote provider's unique identifier for the connected account, taken from the credential's signature. |
Methods
getDetails()
Returns: Map
Raw profile details returned by the remote provider when the account was connected, parsed from the credential's stored JSON. Null if the credential has no stored details.
getProvider()
Returns: String
Identifier of the provider this connection was made through, for example "facebook" or "twitter".
getUserId()
Returns: String
The remote provider's unique identifier for the connected account, taken from the credential's signature.
getDisplayNamePath()
Returns: String
Path used to pull a display name out of the details map. Falls back to "displayName" when the provider this credential belongs to does not configure its own path.