This works as expected. But, if I reload the page, the onLoad() attempts to do a "silent authentication" to recover my credentials and this fails. The onLoad() results in a network request being sent that looks like:
And this fails, with the logs reporting "Failed Silent Auth: Callback URL mismatch. https://localhost:8080 is not in the list of allowed callback URLs."
This is correct: that URL is not in my list of allowed callback URLs, and nor do I want it to be. But, onLoad() doesn't seem to accept a redirectUrl as a parameter.
Checklist
Description
When I login with:
This works as expected. But, if I reload the page, the
onLoad()
attempts to do a "silent authentication" to recover my credentials and this fails. TheonLoad()
results in a network request being sent that looks like:And this fails, with the logs reporting "Failed Silent Auth: Callback URL mismatch. https://localhost:8080 is not in the list of allowed callback URLs."
This is correct: that URL is not in my list of allowed callback URLs, and nor do I want it to be. But,
onLoad()
doesn't seem to accept a redirectUrl as a parameter.You can work around this with:
But, yuck. It would be much nicer if the
Auth0Web
constructor accepted an optional redirectUri parameter like the js version does.Reproduction
n/a
Additional context
No response
auth0_flutter version
1.5.0
Flutter version
3.20.0-7.0.pre.17
Platform
Web
Platform version(s)
No response