MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
275 stars 245 forks source link

ui_locales problem #246

Closed hsiami closed 2 years ago

hsiami commented 3 years ago

When I set ui_locales in additional parameters this error occurs: "Parameter ui_locales is directly supported via the authorization request builder, use the builder method instead"

until 1.1.0 this error did not exist

final result = await appAuth.authorizeAndExchangeCode(
        AuthorizationTokenRequest(_clientId, _redirectUrl,
            clientSecret: _clientSecret,
            discoveryUrl: _discoveryUrl,
            scopes: _scopes,
            promptValues: [
              'login'
            ],
            additionalParameters: {
              'ui_locales': language.name(),
            }
       ),
 );
MaikuB commented 3 years ago

As the dependencies for the native AppAuth SDKs have been bumped along the way, this may mean the native ones changed how certain parameters are specified. If this is affecting you then I would suggest submitting a PR

MaikuB commented 2 years ago

A PR was submitted, merged in and released as part of 2.1.0