Flow.implicit constructor

Flow.implicit(
  1. Client client, {
  2. String? state,
  3. String? device,
  4. String? prompt,
})

Implementation

Flow.implicit(Client client, {String? state, String? device, String? prompt})
    : this._(
          FlowType.implicit,
          [
            'token id_token',
            'id_token token',
            'id_token',
            'token',
          ].firstWhere((v) =>
              client.issuer.metadata.responseTypesSupported.contains(v)),
          client,
          state: state,
          scopes: [
            'openid',
            'profile',
            'email',
            if (device != null) 'offline_access'
          ],
          additionalParameters: {
            if (device != null) 'device': device,
            if (prompt != null) 'prompt': prompt,
          });