Authorize endpoint return 200 with a content and the module a error

Hello, when I use the getWithoutPrompt function on okta/okta-auth-js module I have this error and a template on the response : Clients with ‘application_type’ of ‘service’ are not allowed to access the ‘authorize’ endpoint.

I’m on a Nuxt.js env and I don’t understand why the api return this reponse and the module this message.

Someone can help me please I don’t find the solution ?

login (email, pass, cb) {
    cb = arguments[arguments.length - 1]
    if (localStorage.token) {
      if (cb) cb(true)
      this.onChange(true)
      return
    }
    return authClient.signInWithCredentials({
      username: email,
      password: pass
    }).then(transaction => {
      if (transaction.status === 'SUCCESS') {
        return authClient.token.getWithoutPrompt({
          clientId: 'My client ID',
          responseType: ['id_token', 'token'],
          scopes: ['openid', 'email', 'profile'],
          sessionToken: transaction.sessionToken,
          redirectUri: window.location.origin + '/login/callback'
        }).then(response => {
          localStorage.token = response.tokens.accessToken
          localStorage.idToken = response.tokens.idToken
          if (cb) cb(true)
          this.onChange(true)
        })
      }
    }).catch(err => {
      console.error(err.message)
      if (cb) cb(false)
      this.onChange(false)
    })
  },

Hi there. It sounds like maybe you created an OAuth service app in Okta. Can you try re-creating the app as type Single Page Application?