Auth

Auth

# new Auth()

Methods

# (static) authenticate(params) → {Promise.<AuthResponse>}

Authenticate with GetSocial.
Parameters:
Name Type Description
params Object Authentication parameters.
Properties
Name Type Attributes Default Description
identity_type string facebook or Custom identity type, e.g email or myapp.
token string A unique token for this user. You will need to provide the same token to be able to reauthenticate as this user. If identity_type is facebook, use a valid Facebook access token instead.
new_user boolean <optional>
false Whether this user is new to your app or not.
Returns:
A Promise for the authenticated user and referral information.
Type
Promise.<AuthResponse>

# (static) logout()

Logs out the current user.