title: OKTA Self service registration with Nextjs REACT
body: <p>I have been trying to allow users to sign up for my app with the Okta SSR feature however I keep getting this error that says:</p>
  <pre><code>{&quot;errorCode&quot;:&quot;E0000060&quot;,&quot;errorSummary&quot;:&quot;Unsupported operation.&quot;,&quot;errorLink&quot;:&quot;E0000060&quot;,&quot;errorId&quot;:&quot;oaekKu3BL6EQv2antsdViFLZQ&quot;,&quot;errorCauses&quot;:[]}
  </code></pre>
  <p>In the console it says:</p>
  <pre><code>GET https://{devsite}.okta.com/api/v1/registration/form 501
  </code></pre>
  <p>Has anyone else had this issue for NextJS REACT? I have followed the setup guide <strong><a href="https://developer.okta.com/docs/guides/oie-embedded-sdk-use-case-self-reg/nodejs/main/" rel="nofollow noreferrer">here</a></strong> twice. The login part of the custom widget works fine. just when clicking on sign up it will give the error and only show the custom brand stuff made for the widget. The code looks like this:</p>
  <pre><code>const oktaSignInConfig = {
  
    baseUrl: `https://${OKTA_DOMAIN}`,
    clientId: CLIENT_ID,
    logo: &quot;/icons/TextLogo.svg&quot;,
    redirectUri: window.location.origin + &quot;/login/callback&quot;,
    authParams: {
      // If your app is configured to use the Implicit Flow
      // instead of the Authorization Code with Proof of Code Key Exchange (PKCE)
      // you will need to uncomment the below line
      // pkce: false
    },
    registration: {
      parseSchema: (
        schema: any,
        onSuccess: (schema: any) =&gt; {},
        onFailure: (error: any) =&gt; {}
      ) =&gt; {
        // handle parseSchema callback
        schema.profileSchema.properties.primaryPhone = {
          'type': 'string',
          'description': 'Phone',
          'default': 'Enter your phone number'
        };
        schema.profileSchema.fieldOrder.push('primaryPhone');
        onSuccess(schema);
      },
      preSubmit: (
        postData: any,
        onSuccess: (postData: any) =&gt; {},
        onFailure: (error: any) =&gt; {}
      ) =&gt; {
        // handle preSubmit callback
        onSuccess(postData);
        const error = {
          errorSummary: &quot;API Error&quot;,
          errorCauses: [
            {
              errorSummary: &quot;Custom field level error&quot;,
              property: &quot;userProfile.email&quot;,
            },
          ],
        };
        onFailure(error);
      },
      postSubmit: (
        response: any,
        onSuccess: (response: any) =&gt; {},
        onFailure: (error: any) =&gt; {}
      ) =&gt; {
        // handle postsubmit callback
        onSuccess(response);
        const error = {
          errorSummary: &quot;API Error&quot;,
          errorCauses: [
            {
              errorSummary: &quot;Custom field level error&quot;,
              property: &quot;userProfile.email&quot;,
            },
          ],
        };
        onFailure(error);
      },
    },
    features: {
      registration: true,
      rememberMe: true,
      showPasswordToggleOnSignInPage: true,
    },
  };
  </code></pre>
  <p>The registration part on the <strong><a href="https://github.com/okta/okta-signin-widget#registration" rel="nofollow noreferrer">github</a></strong> doesn't say anything about this error.</p>
  <p>There are parts undocumented, if you go into the application section on Okta under the one you created and go to the assignments tab there is a little box that says <strong>self service</strong> and it is selected as <strong>disabled</strong> by default so naturally I had to enable it. Yet that did not fix the problem.</p>
  <p>Then I tried going to the <strong>Okta API scopes</strong> tab and granting access to the registration it was <strong>okta.clients.registration</strong>. And that did not work.</p>
  <p>The app I use is an OIDC for an SPA. I selected the top three check boxes for Grant type (Authorization code, interaction code, and refresh token) everything else is default. And I followed the article that I referenced earlier.</p>
  <p>So, could anyone provide insight as to what I am doing wrong?</p>