getAuthenticatedUserProfile
This method retrieves the currently authenticated user (profile).
getAuthenticatedUserProfile(): Promise<Types.Profile>
Example
OneWelcomeSdk.getAuthenticatedUserProfile()
.then(profile => {
console.log('Authenticated Profile succeed! ', profile)
})
.catch(error => {
console.log('Authenticated Profile failed!: ', error.message)
})
Success
Property | Type | Description |
---|---|---|
authenticatedProfile | Profile | Currently authenticated user profile |