Bad client credentials
httpe://us.battle.net/oauth/token?:region=us&grant_type=authorization_code&code=US9LRLNFS9BEKZIHPY5UVKRCCUSNYY24OJ&redirect_uri=http://localhost:3000/games&client_id=myclientId
When I try to Hit this API, I’m Just Getting this Response
{
“error”: “invalid_client”,
“error_description”: “Bad client credentials”
}
I have no idea what’s going on, Any suggestions?
Hi jstratman33,
Are you writing a purely client side application/single page app? Blizzard OAuth does not currently support OAuth flows sufficient for single page applications. To facilitate the Authorization Code Flow (managing redirects and to keeping your client secret private), we recommend leveraging a server component in your application architecture.
Fuente