@nibssplc/cams-sdk-react 0.0.1-beta.28 → 0.0.1-beta.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -16726,10 +16726,10 @@ function useCAMSMSALAuth(options) {
16726
16726
  if (account && !isMFAPending) {
16727
16727
  // Get token in foreground popup
16728
16728
  instance
16729
- .acquireTokenSilent({
16729
+ .acquireTokenPopup({
16730
16730
  scopes: scopes,
16731
16731
  account: account,
16732
- prompt: options.prompt || "select_account",
16732
+ prompt: options.prompt || "login",
16733
16733
  })
16734
16734
  .then(function (response) {
16735
16735
  var _a;
@@ -16762,7 +16762,7 @@ function useCAMSMSALAuth(options) {
16762
16762
  _d.trys.push([1, 3, , 8]);
16763
16763
  return [4 /*yield*/, instance.loginPopup({
16764
16764
  scopes: scopes,
16765
- prompt: options.prompt || "select_account",
16765
+ prompt: options.prompt || "login",
16766
16766
  })];
16767
16767
  case 2:
16768
16768
  _d.sent();
@@ -16776,7 +16776,7 @@ function useCAMSMSALAuth(options) {
16776
16776
  _d.trys.push([4, 6, , 7]);
16777
16777
  return [4 /*yield*/, instance.loginRedirect({
16778
16778
  scopes: scopes,
16779
- prompt: options.prompt || "select_account",
16779
+ prompt: options.prompt || "login",
16780
16780
  })];
16781
16781
  case 5:
16782
16782
  _d.sent();