I am trying to configure the Azure AD B2C application for react native and using this lib for react-native. when trying to call init()
it gives error Cannot read property 'createPublicClientApplication' of null.
below is the MSAL config
auth: {
clientId: 'fc8ecae3-0883-45f4-ac1c-013dfa11cb9c',
authorityBase: 'https://stashcafe.b2clogin.com/tfp/stashcafe.onmicrosoft.com',
policies: {
signInSignUp: 'B2C_1_SignInUp',
passwordReset: 'B2C_1_PasswordReset',
},
// redirectUri: Platform.select({ default: undefined }),
},
// web only:
cache: { cacheLocation: 'localStorage' },
export const b2cScopes = ['https://stashcafe.onmicrosoft.com/api/user_impersonation'];
I have tried to add my own azure AD config but still same error.