How would I write an axios call to a get endpoint in the post-login actions? I tried this but it was giving me a 404 (I’m able to plug in the same headers and url in postman and get data back)
After looking carefully at the code snippet you shared, it looks like you are calling an endpoint that does not exist. (Reference: Authentication API Explorer)
The correct endpoint should be /userinfo without a hyphen.
Could you please make these changes and let me know how it goes?
Apologies, the endpoint i’m trying to hit is an api that I’ve created that ends in user-info. It’s an endpoint that hosted (it doesn’t use my localhost).
Does the rest of the axios call look correct?