"Missing required parameter: response_type" Login Error

Problem statement

This article addresses the below error that may appear while logging in:

Missing required parameter: response_type

Solution

This error occurs when the /authorize request URL does not include the required response_type parameter.

For example:

https://YOUR_DOMAIN/authorize?
      response_type=code&
      client_id=YOUR_CLIENT_ID&
      redirect_uri=https://YOUR_APP/callback&;
      scope=SCOPE&
      audience=API_AUDIENCE&
      state=STATE

In this case, make sure that the /authorize request includes the response_type parameter. After doing so, the users will be able to log in without issues.