getSessionInfo
client.getSessionInfo()
Examples
client
.getSessionInfo()
.then(sessionInfo => {
if (sessionInfo.isAuthenticated) {
// Do something
} else {
// Do something else
}
})
.catch(err => console.error(err))
Response
Type: Promise<SessionInfo>
SessionInfo
isAuthenticated |
Whether the profile is authenticated. |
name |
The full name of the profile. |
email |
The email address with which the profile has logged-in. |
lastLoginType |
The type of the last authentication. |
hasPassword |
Whether the profile has used a password to logged-in. |
socialProviders |
List of the social providers used by the profile. |