function BearerTokenType(accessToken, accessTokenLifetime, refreshToken, scope, customAttributes) {
  if (!accessToken) {
    throw new InvalidArgumentError('Missing parameter: `accessToken`');
  }

  this.accessToken = accessToken;
  this.accessTokenLifetime = accessTokenLifetime;
  this.refreshToken = refreshToken;
  this.scope = scope;

  if (customAttributes) {
    this.customAttributes = customAttributes;
  }
}