I tried to create an access token using the following details
{
grant_type: ‘client_credentials’,
client_id: “2yuh6hjmzagiw5hr8tqhxvcqkcgyiw4c”,
client_secret: “my client secret”,
box_subject_type: ‘user’, //
box_subject_id: ‘my user id’, //
};
I am getting following error even after providing the correct credentials:
data: {
error: ‘invalid_grant’,
error_description: ‘Grant credentials are invalid’
}
my app setup is : 1.server authentication (Client credential)
2. app access only
please let me know how to resolve it