AuthClient constructor Null safety
Creates an instance of AuthClient.
id
must not be null. hashedSecret
and salt
must either both be null or both be valid values. If hashedSecret
and salt
are valid values, this client is a confidential client. Otherwise, the client is public. The terms 'confidential' and 'public'
are described by the OAuth 2.0 specification.
If this client supports scopes, allowedScopes
must contain a list of scopes that tokens may request when authorized
by this client.
Implementation
AuthClient(
String? id,
String? hashedSecret,
String? salt, {
List<AuthScope>? allowedScopes,
}) : this.withRedirectURI(
id,
hashedSecret,
salt,
null,
allowedScopes: allowedScopes,
);