title: What is the advantage of a custom API in Auth0?
body: <p><strong>Question</strong></p>
  
  <p>I got a problem with understanding some basic thing about auth0, probably someone can help me out.</p>
  
  <p>In the tutorial <a href="https://auth0.com/docs/architecture-scenarios/spa-api" rel="nofollow noreferrer">SPA + API</a> one of the first lines in the TDLR is this:</p>
  
  <blockquote>
    <p>Both the SPA and the API must be configured in the Auth0 Dashboard</p>
  </blockquote>
  
  <p>I dont understand why I need to configure the API on Auth0. My code seems to work so can anyone help me understand if I do something wrong or what the advantages are if I actually add a custom API in my dashboard?</p>
  
  <p><strong>Setup</strong></p>
  
  <ul>
  <li>SPA (React)</li>
  <li>Auth0</li>
  <li>REST API (ktor)</li>
  </ul>
  
  <p><strong>What I do</strong></p>
  
  <ul>
  <li>Created a SPA on Auth0 </li>
  <li>Login on my SPA through Auth0 to get a JWT (google token)</li>
  <li>Sending the JWT as authentication bearer in my calls to the REST API</li>
  <li>REST API verifies the JWT token with a JWK provider using the Auth0 url <code>mydomain.eu.auth0.com/.well-known/jwks.json</code>. </li>
  <li>Authentication seems to work</li>
  </ul>