syncweek-react-aad / react-aad

A React wrapper for Azure AD using the Microsoft Authentication Library (MSAL). The easiest way to integrate AzureAD with your React for authentication.
MIT License
345 stars 94 forks source link

Unhandled Rejection (ClientAuthError): User login is required. For silent calls, request must contain either sid or login_hint #284

Open Artyma93 opened 3 years ago

Artyma93 commented 3 years ago

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I described the problem in more detail here - https://stackoverflow.com/questions/64661382/unhandled-rejection-clientautherror-user-login-is-required-for-silent-calls

Any log messages given by the failure

Unhandled Rejection (ClientAuthError): User login is required. For silent calls, request must contain either sid or login_hint

Expected/desired behavior

Get token in AzureAD and request to get data in API. I described the problem in more detail here - https://stackoverflow.com/questions/64661382/unhandled-rejection-clientautherror-user-login-is-required-for-silent-calls

OS and Version?

Windows 10

Library versions

Mention any other details that might be useful

-

Question

Can you please tell me where in the documentation you can learn about the best practices for getting data such as sid and loginHint using the react-aad-msal library?