title: KEYCLOAK: Client secret not provided in request
body: <p>keycloak js version -> ^10.0.2</p>
  
  <p>angular -> ^7.2.16</p>
  
  <p>keycloak.json </p>
  
  <pre><code>{
    "realm": "REALM",
    "auth-server-url": "&lt;auth-url&gt;/auth/",
    "ssl-required": "external",
    "resource": "CLIENT_ID",
    "verify-token-audience": true,
    "credentials": {
      "secret": "CLIENT_SECRET_KEY"
    },
    "use-resource-role-mappings": true,
    "confidential-port": 0,
    "policy-enforcer": {}
  }
  </code></pre>
  
  <p>using in init like this</p>
  
  <pre><code>const keycloakAuth = Keycloak('keycloak.json');
  keycloakAuth.init({ onLoad: 'login-required', checkLoginIframe: false })
  </code></pre>
  
  <p>when keycloak made this call <code>&lt;auth-url&gt;/auth/realms/guavus/protocol/openid-connect/token</code> than giving this error. </p>
  
  <blockquote>
    <p>{"error":"unauthorized_client","error_description":"Client secret not provided in request"}</p>
  </blockquote>
  
  <p>as per <a href="https://www.keycloak.org/docs/latest/release_notes/#credentials-support-removed-from-the-javascript-adapter" rel="nofollow noreferrer">documentation</a> removed credential support from javascript adapter  </p>
  
  <p>than what is the alternative of this and how to fix this error?</p>