GetTokenParams constructor

GetTokenParams({
  1. required String authorizedEntity,
  2. required String scope,
  3. Map? options,
})

Implementation

GetTokenParams({
  /// Identifies the entity that is authorized to access resources associated
  /// with this Instance ID. It can be a project ID from [Google developer
  /// console](https://code.google.com/apis/console).
  required String authorizedEntity,

  /// Identifies authorized actions that the authorized entity can take. E.g.
  /// for sending GCM messages, `GCM` scope should be used.
  required String scope,

  /// Allows including a small number of string key/value pairs that will be
  /// associated with the token and may be used in processing the request.
  Map? options,
}) : _wrapped = $js.GetTokenParams(
        authorizedEntity: authorizedEntity,
        scope: scope,
        options: options?.jsify(),
      );