Class

Member

Member

This represents a logged in user. You probably do not need to use this class, it's better if member related authentication is handled directly via authenticated API calls from the browser

Please see the tutorial on Building Performant Apps [FIXME: Broken Link] for details

Methods

static getCurrentMember(client, authToken) → {Promise.<(Member|null)>}

This API will get the current member, given an auth token. You probably do not need to use this class, it's better if member related authentication is handled directly via authenticated API calls from the browser Please see the tutorial on Building Performant Apps [FIXME: Broken Link] for details

Parameters:
Name Type Description
client Client
authToken string
See:

View Source index.js, line 414

Promise.<(Member|null)>

asJson()

Use this to convert to a simple javascript object, suitable for JSON.

View Source index.js, line 400