setAuthorizationParams method
void
setAuthorizationParams({})
Sets the proper parameters for requesting an authorization token.
The parameters are validated depending on the grantType
.
Implementation
@deprecated
void setAuthorizationParams(
{required int grantType,
required String clientId,
String? clientSecret,
List<String>? scopes,
bool? enablePKCE,
bool? enableState,
Map<String, dynamic>? authCodeParams,
Map<String, dynamic>? accessTokenParams}) {
this.grantType = grantType;
this.clientId = clientId;
this.clientSecret = clientSecret;
this.scopes = scopes;
this.enablePKCE = enablePKCE ?? true;
this.enableState = enableState ?? true;
this.authCodeParams = authCodeParams;
this.accessTokenParams = accessTokenParams;
_validateAuthorizationParams();
}