Returns a list of accounts associated with signed in user. This is useful for OAuth implementations that do not give you access to the token response.
traveler.user
.getMembershipDataForCurrentUser('oauthAccessToken')
.then(response => {
console.log(response);
})
.catch(err => {
console.log(err);
});
Returns a list of accounts associated with the supplied membership ID and membership type. This will include all linked accounts (even when hidden) if supplied credentials permit it.
traveler.user .getMembershipDataById('membershipId', BungieMembershipType.TigerPsn, 'oauthAccessToken') .then(response => { console.log(response); }) .catch(err => { console.log(err); });
UserResource