Invalid grant - grant credentials are invalid
AnsweredHi, I am aware there are other posts regarding this subject but they seem outdated. I have an application that I setup since February 2023 to upload and download files successfully. I have had very few problems with this. I am trying to use this feature again currently but am now getting the error as listed in the titled of invalid grant - grant credentials are invalid. I have received emails that some changes have been made to the Box API but I cannot find anything indicating a change that would relate to my issue here. For reference, the last time I used and successfully was able to upload and download was August 23, 2024. The client ID for this app is
The code I am sending is as such:
await fetch('https://api.box.com/oauth2/token', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "grant_type": "client_credentials", "client_id": clientID, "client_secret": clientSecret, "box_subject_type": 'user', "box_subject_id": userID })
})
-
Hi David,
Welcome to Box Community and glad to assist!
To answer your question, please reach out to our Developer team via community.box.com.
Thanks for posting!
Please sign in to leave a comment.
Comments
1 comment