Creates a new instance of an AuthServer with a storage.
hashFunction defaults to sha256.
Source
AuthServer(this.storage, {this.hashRounds: 1000, this.hashLength: 32, Hash hashFunction}) :
this.hashFunction = hashFunction ?? sha256;
Creates a new instance of an AuthServer with a storage.
hashFunction defaults to sha256.
AuthServer(this.storage, {this.hashRounds: 1000, this.hashLength: 32, Hash hashFunction}) :
this.hashFunction = hashFunction ?? sha256;