AuthToken.fromParameters constructor

AuthToken.fromParameters(
  1. String key, {
  2. int startTime = 0,
  3. int duration = 0,
  4. String? tokenName,
  5. int expiration = 0,
  6. String? ip,
  7. String? acl,
  8. bool isNullableToken = false,
})

Implementation

AuthToken.fromParameters(String key,
    {this.startTime = 0,
    int duration = 0,
    String? tokenName,
    int expiration = 0,
    this.ip,
    this.acl,
    bool isNullableToken = false}) {
  _key = key;
  _expiration = expiration;
  _duration = duration;
  _tokenName = tokenName ?? _authTokenName;
  _isNullToken = isNullableToken;
}