setCurrentUserToken static method

void setCurrentUserToken(
  1. String token
)

includes the provided token for future api calls in the http header Use this to gain access to restricted documents token will be automatically removed after logout or revoking session

Implementation

static void setCurrentUserToken(String token) =>
    _headers['X-Parse-Session-Token'] = token;