AuthServer(AuthStorage storage, { int hashRounds: 1000, int hashLength: 32, Hash hashFunction })

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;