Quickstart for React SPA getting Login Required trying to get user_metadata

Could someone help me with this?
I’m going through the example at https://auth0.com/docs/quickstart/spa/react/02-calling-an-api, trying to adapt it to my React SPA.

I’m getting “Login required” at the point of trying to get an access token.
The last network request is (with details obfuscated…):
https://[my domain]/authorize?audience=https[my domain]%2Fapi%2Fv2%2F&scope=openid%20profile%20email%20read%3Acurrent_user%20update%3Acurrent_user_metadata%20read%3Ausers%20read%3Auser_idp_tokens&client_id=[yaddayadda]&redirect_uri=http%3A%2F%2Flocalhost%3A3000&response_type=code&response_mode=web_message&state=[yaddayadda]%3D%3D&nonce=[yaddayadda]%3D%3D&code_challenge=[yaddayadda]&code_challenge_method=S256&prompt=none&auth0Client=[yaddayadda]%3D%3D

I’m able to use auth0 react module to get the user info in this component but I’m stuck at trying to access the management API to get user_metadata.

Hey there @shunyun!

Can I ask you yo open a GitHub issue for the in the quickstart repo? This way we’ll be able to solve it most effectively by working directly with the quickstart maintainers. Share with us the link to the issue once you have it so we can ping them. Thanks!

1 Like

Have you had a chance to open the GitHub issue in the meantime?

I have not. I spent too much time trying to make this work and I simply have to find a solution that is well documented and solid. My apologies but I can’t take any more time on this. Hope you find someone who does.

Sorry for that bad experience!