Forum Discussion
Hi silky27,
I want to ask one question before I go to our Engineering team. I'm wondering if the problem is that the access token expired. After you get the access token once, you should be using calls using the refresh token. See Step 5 in the OAuth flow summary in the OAuth guide. If you're using that flow already, let me know and I'll I go talk to the team.
- silky278 years agoContributor
Hi SuzieH
We generated a new token and tested with it. We also refreshed the token using the refresh token and made API calls with it. Both resulted in the same error response.{"response":{"status":"error","error":{"code":302,"message":"User authentication failed."}}}
Also, to validate the access tokens generated, we are using the callcurl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <>" -H "client-id:<>" "https://api.stage.lithium.com/auth/v1/validate/oauth"
This gives a success response again{"response":{"httpCode":200,"message":"OK","status":"success","data":{"valid":true,"appId":<>,"lithiumUserId":<>}}}
Related Content
- 2 years ago
- 9 months ago