I have this link : https://{application}.auth.us-east-1.amazoncognito.com/oauth2/authorize?response_type=token&client_id={clientid}&redirect_uri=http://localhost
Above link will direct me to login page of Cognito. How do I return the respond as JSON so I can set up the token in cookie or indexedDB ?