Description
Checklist
- The issue can be reproduced in the auth0_flutter sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
When passing String
params to the SDK it fails to login as String
is not a JSAny
.
This line should be changed to value.toJS
Also because of your defenition of params the funcationaddCustomParams<T extends JSObject>(final T obj, final Map<String, dynamic> params)
should use final Map<String, String> params
and not final Map<String, dynamic> params
After fixing this error loginWithPopup
still did not work, I am getting error cancelled: Popup closed
I tried removing parameters
and I am still getting the same error error cancelled: Popup closed
Reproduction
Pass String
params to loginWithPopup
and you will get an error Type 'String' is not a subtype of type 'JSValue' in type cast
if this is fixed then the next error you will get is error cancelled: Popup closed
Additional context
No response
auth0_flutter version
1.9.0
Flutter version
3.29.1
Platform
Web
Platform version(s)
wasm