How to implement PKCE for flutter web?

From the example provided by auth0, after user call auth0Web.loginWithRedirect(
redirectUrl: ‘’,

The result is void, then how can we exchange tokens with authorization code?
From auth0-spa-js we can know that FE need call handleRedirectCallback, but auth0_web for flutter don’t have this api, shall we call it by javascript manually?

Hey there @michael.pang welcome to the community!

Can you help me understand what you mean here? Upon successful authentication with loginWithRedirect users should be redirected back to your to your application. There isn’t a direct equivalent to handleRedirectCallback but maybe the onLoad method is what you’re looking for.

Here’s how it is utilized in the sample app:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.