@functionalcms/svelte-components 0.8.4 → 0.8.6

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/authStore.js CHANGED
@@ -1,10 +1,10 @@
1
- import { readonly, writable } from "svelte/store";
1
+ import { get, readonly, writable } from "svelte/store";
2
2
  import { PublicClientApplication } from "@azure/msal-browser";
3
3
  const isAuthenticated = writable(false);
4
4
  const accessToken = writable('');
5
5
  const userId = writable('');
6
6
  let msal;
7
- let _config;
7
+ let authConfig;
8
8
  const getMSALConfig = (config) => {
9
9
  return {
10
10
  auth: {
@@ -53,10 +53,10 @@ export const authStore = {
53
53
  msal = new PublicClientApplication(getMSALConfig(config));
54
54
  await msal.initialize();
55
55
  await logUsingCookies(config);
56
- _config = config;
56
+ authConfig = config;
57
57
  },
58
58
  signIn: async () => {
59
- const loginResponse = await msal.loginPopup(getLoginRequest(_config));
59
+ const loginResponse = await msal.loginPopup(getLoginRequest(authConfig));
60
60
  handleToken(loginResponse);
61
61
  },
62
62
  signOut: async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },