@logto/vue 0.1.11 → 0.1.12

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/lib/context.js CHANGED
@@ -19,6 +19,7 @@ const createContext = (client) => {
19
19
  else if (fallbackErrorMessage) {
20
20
  error.value = new Error(fallbackErrorMessage);
21
21
  }
22
+ console.error(error);
22
23
  };
23
24
  const setLoading = (isLoading) => {
24
25
  if (isLoading) {
package/lib/plugin.js CHANGED
@@ -26,7 +26,9 @@ const createPluginMethods = (context) => {
26
26
  try {
27
27
  setLoading(true);
28
28
  await logtoClient.value.signOut(postLogoutRedirectUri);
29
- setIsAuthenticated(false);
29
+ // We deliberately do NOT set isAuthenticated to false here, because the app state may change immediately
30
+ // even before navigating to the oidc end session endpoint, which might cause rendering problems.
31
+ // Instead, we will reload isAuthenticated state when the user is redirected back to the app.
30
32
  }
31
33
  catch (error) {
32
34
  setError(error, 'Unexpected error occurred while signing out.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/vue",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "main": "./lib/index.js",
5
5
  "exports": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "fb6df238f56049607af2c3b88bee07ba2aa45dae"
64
+ "gitHead": "1e7449daf62edac7f7dd2eb37f3e5b83e6bf3c56"
65
65
  }