auth0-flutter
auth0-flutter copied to clipboard
[wasm] loginWithRedirect function using parameters break on wasm Flutter 3.29.2, auth0_flutter 1.9.0
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
- Set the Flutter version to 3.29.2.
- Add
auth0_flutter: 1.9.0to your project. - Enable WASM.
- Attempt to compile the application.
- 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
Hi @EduardoYamauchi , We are working on fixing the above issue along with few other and will push a release soon. Thanks for you understanding
This has been fixed on the latest flutter version