Error stubbed_public_client_application_called #3746
Unanswered
SagarPattnayak
asked this question in
Help
Replies: 1 comment
-
@SagarPattnayak Did you visit the link in the error message? This error is thrown when there is no context provider above the component you're trying to render. Please make sure that all of your components that use MSAL are underneath an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to redirect users to Login screen from a React class component. I am following the link https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-react/docs/class-components.md for the same.
However no matter what I do and how I do, I am always getting the bellow error.
stubbed_public_client_application_called: Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors
I am trying to do this in local and local host is added as one of the redirect uri in Azure AD app. Please help me. I am new to react and MSAL.
BR
Sagar
Beta Was this translation helpful? Give feedback.
All reactions