400 Error for Https: //Login. Microsoftonline. Com/Common/Oauth2/Token Post Request React Typescript

I am trying to do a post request to in react typescript application

I am getting a 400 error while making a post request in my React Typescript Application

1 Answer

To achieve the above requirement, You need to use the below workaround.

When you are adding client id and client secret ,In this case there is no need to provide username and password.

You can achieve this with client id and client secret and adding scope to it.

To get the scope details you can find as below:

SCREENSHOT FOR REFERENCE:- In grant type use "client credential" instead of password

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest