title: How to use "Sign In with Apple" with Apple JS
body: <p>I would use "Sign In with Apple" in the web via Apple JS. The code example can be found here: <a href="https://developer.apple.com/documentation/signinwithapplejs/configuring_your_webpage_for_sign_in_with_apple" rel="noreferrer">https://developer.apple.com/documentation/signinwithapplejs/configuring_your_webpage_for_sign_in_with_apple</a></p>
  
  <p>The question now is: what is the Client ID and where can I find it. I tested the identifier of the app id on <a href="https://developer.apple.com/account/resources/identifiers/list" rel="noreferrer">https://developer.apple.com/account/resources/identifiers/list</a> and I tested the identifier of the service id. If I click on the button and verify with Touch ID on my mac, I got the error "AUTH_ALERT_SIGN_UP_NOT_COMPLETED":</p>
  
  <p><a href="https://i.stack.imgur.com/7fWDe.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/7fWDe.jpg" alt="enter image description here"></a></p>
  
  <p>This is the used code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;button id="sign-in-with-apple-button"&gt; Sign In with Apple &lt;/button&gt;
          &lt;script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              AppleID.auth.init({
                  clientId : 'unknown',
                  scope : 'email',
                  redirectURI: 'https://mytld/test.php',
                  state : 'DE'
              });
  
              const buttonElement = document.getElementById('sign-in-with-apple-button');
              buttonElement.addEventListener('click', () =&gt; {
                  AppleID.auth.signIn();
              });
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I got no request on test.php.</p>