Questions tagged [msal-react]
113 questions
0
votes
1 answer
Azure B2C - MSAL - Clear token from browser on basis of authority
In my react app, I am using login and edit profile useflow of azure b2c using msal loginPopup by passing different authorities.
When I am signing in, a new ID token is getting generated with claims. After login when I am editing my profile using…

Springy Developer
- 268
- 5
- 17
0
votes
1 answer
@azure/msal-react Call .NET Api immediately after Authentication
I am completely new to React and I was wondering how I can call my .NET Core Backend API automatically after I logged in with the msal-react library?
For the Login I followed the tutorial on Microsoft…

bbrinck
- 953
- 1
- 9
- 33
0
votes
1 answer
React Native problem with finding module blacklist in metro-config
I'm trying to use this library. I cloned the code, ran npm install and then ran react-native run-android. As a result I got an error Cannot find module 'metro-config/src/defaults/blacklist'. I looked it up, and found an answer that suggest
to change…

Keselme
- 3,779
- 7
- 36
- 68
-1
votes
1 answer
Trying to access an endpoint by passing MSAL bearer token generated in React Client App (using msal-react) to backend (Spring Security 5 + Webflux)
I have a React Client App where I am using msal-react to authenticate the user and generate an access token (API: /oauth2/v2.0/token) along with a bunch of other details like refresh_token, id, scope, etc.
I want to just use the access token and…
-1
votes
1 answer
How to write unit test case for react msal library private router in reactjs
I am trying to write the unit test case for the private route we created, using @azure/msal-react
below is the code for the private route
import React from 'react';
import { Route, Redirect } from 'react-router-dom';
import {
…

SDK
- 1,356
- 3
- 19
- 44
-1
votes
2 answers
Unable to read config values from static web app
I have deployed a Static Web App in Azure with the following configuration settings:
I have the following authConfig.ts:
import { Configuration } from "@azure/msal-browser";
// Config object to be passed to Msal on creation
export const…

user989988
- 3,006
- 7
- 44
- 91
-1
votes
1 answer
Error "AADSTS50194: Application 'xxxxxxxx' is not configured as a multi-tenant application" when using 'azure/msal-browser' reactjs package
I have a SPA app that is trying to login to Azure AD using 'azure/msal-browser' reactjs package.
The app is set to use a single tenant authentication at Azure App registration.
The authConfig.js file is set to use single tenant Authentication as…

MiguelSlv
- 14,067
- 15
- 102
- 169
-2
votes
1 answer
How do I call a custom hook after success of another API call
I have created a custom hook and a component:
export const useUserInfo = () => {
const query = useQuery({
queryKey: ["users-info"],
queryFn: () => fetchUserInfo(),
});
return query;
};
const Auth = () => {
const { instance } =…

ganesh kaspate
- 1
- 9
- 41
- 88