Error on Single Web Page

Hello everyone,

I use glinch to make tests with Okta sign in widget. I have this error: “Something went wrong. Potential misconfiguration detected. Please contact support.”

I modify the index.html. Hear the code.

<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <link rel="stylesheet" href="" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
    <title>Simple Web Page</title>
      h1 {
        margin: 2em 0;
    <!-- widget stuff here -->
    <script src="" type="text/javascript"></script>
    <link href="" type="text/css" rel="stylesheet"/>
    <div class="container">
      <h1 class="text-center">Simple Web Page</h1>
      <div id="messageBox" class="jumbotron">
        You are not logged in. Get outta here! Shoo! >:S
      <!-- where the sign-in form will be displayed -->
      <div id="okta-login-container"></div>
      <button id="logout" class="button" onclick="logout()" style="display: none">Logout</button>
    <script type="text/javascript">
      const oktaSignIn = new OktaSignIn({
        baseUrl: "",
        redirectUri: '',
        clientId: "0oa9na4gq9O3xryU05d7",
        authParams: {
          issuer: ""

      oktaSignIn.authClient.token.getUserInfo().then(function(user) {
        document.getElementById("messageBox").innerHTML = "Hello, " + + "! You are *still* logged in! :)";
        document.getElementById("logout").style.display = 'block';
      }, function(error) {
          el: '#okta-login-container'
        }).then(function(tokens) {

          const idToken = tokens.idToken;
          document.getElementById("messageBox").innerHTML = "Hello, " + + "! You just logged in! :)";
          document.getElementById("logout").style.display = 'block';

        }).catch(function(err) {

      function logout() {

Do you see what I’m doing wrong? (Sorry I’m not a developer :slight_smile: )

Thank you very much

What grant type you have in the general settings of the app?

Hi Sherry,

I have authorization code.