auth0-flutter icon indicating copy to clipboard operation
auth0-flutter copied to clipboard

[wasm] loginWithRedirect function using parameters break on wasm Flutter 3.29.2, auth0_flutter 1.9.0

Open EduardoYamauchi opened this issue 1 year ago • 1 comments

Description

I'm encountering an issue using auth0_flutter version 1.9.0 with WASM enabled on Flutter 3.29.2. The application fails to compile un when passing parameters to the loginWithRedirect method, the following error is thrown:

Type 'String' is not a subtype of type 'JSValue' in type cast

Reproduction

  1. Set the Flutter version to 3.29.2.
  2. Add auth0_flutter: 1.9.0 to your project.
  3. Enable WASM.
  4. Attempt to compile the application.
  5. Observe the compilation failure If parameters are passed to the login method loginWithRedirect, the type conversion error occurs.

Additional context

Auth0Client().auth0Web!.loginWithRedirect(
  redirectUrl: Auth0Client().getRedirectUri(),
  parameters: {'key': 'value'},
);

auth0_flutter version

1.9.0

Flutter version

3.29.2

Platform

Web

Platform version(s)

No response

EduardoYamauchi avatar Mar 17 '25 18:03 EduardoYamauchi

Hi @EduardoYamauchi , We are working on fixing the above issue along with few other and will push a release soon. Thanks for you understanding

pmathew92 avatar Mar 18 '25 04:03 pmathew92

This has been fixed on the latest flutter version

pmathew92 avatar May 02 '25 08:05 pmathew92