Hello @bilal welcome to the community!
Where exactly are you getting this error? From your code it looks like the token endpoint (oauth/token
)?
Typically this error is spot on, that is whatever client is requesting the token (in this case your SPA) using client credentials doesn’t support the grant type. Client credentials are only used for confidential applications like M2M.
Keep us posted!