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:
-
- GET /api/v1/members/me API documentation for a list of parameters and fields
Promise.<(Member|null)>
asJson()
Use this to convert to a simple javascript object, suitable for JSON.