ScramAuthentication.fromClientKey constructor
If the client key was stored, use this named constructor with the stored
clientKey
instead. This will save computation time.
The optional challengeTimeout
will cause the authentication process to
fail if the server response took too long.
Implementation
ScramAuthentication.fromClientKey(Uint8List clientKey,
{Duration? challengeTimeout}) {
if (challengeTimeout != null) {
_challengeTimeout = challengeTimeout;
}
_reuseClientKey = true;
_clientKey = clientKey;
_firstClientKeyCompleter.complete(_clientKey);
}