I've found a way to make it work by adding the audience as parameter when login.
final credentials = await auth0.webAuthentication().login(useHTTPS: true, audience: 'YOUR_AUTH0_API_IDENTIFIER');
final access_token = credentials.access_token; // Valid JWT token