@authup/client-web-nuxt 1.0.0-beta.52 → 1.0.0-beta.54
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/module.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
StoreAuthStatus,
|
|
2
3
|
clearAuthorizationRequest,
|
|
3
4
|
injectStore,
|
|
4
5
|
loadAuthorizationRequest,
|
|
@@ -115,7 +116,7 @@ export class RoutingInterceptor {
|
|
|
115
116
|
if (!this.hasLoggedInCondition(route)) {
|
|
116
117
|
return true;
|
|
117
118
|
}
|
|
118
|
-
return
|
|
119
|
+
return this.storeRefs.status.value === StoreAuthStatus.AUTHENTICATED;
|
|
119
120
|
}
|
|
120
121
|
hasLoggedOutCondition(route) {
|
|
121
122
|
return route.matched.some(
|
|
@@ -126,7 +127,7 @@ export class RoutingInterceptor {
|
|
|
126
127
|
if (!this.hasLoggedOutCondition(route)) {
|
|
127
128
|
return true;
|
|
128
129
|
}
|
|
129
|
-
return
|
|
130
|
+
return this.storeRefs.status.value !== StoreAuthStatus.AUTHENTICATED;
|
|
130
131
|
}
|
|
131
132
|
hasPermissionCondition(route) {
|
|
132
133
|
return route.matched.some(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authup/client-web-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.54",
|
|
5
5
|
"description": "Nuxt module for the authup ecosystem",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"node": "^22.13.0 || ^23.5.0 || >=24.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@authup/access": "^1.0.0-beta.
|
|
34
|
-
"@authup/client-web-kit": "^1.0.0-beta.
|
|
35
|
-
"@authup/kit": "^1.0.0-beta.
|
|
33
|
+
"@authup/access": "^1.0.0-beta.54",
|
|
34
|
+
"@authup/client-web-kit": "^1.0.0-beta.54",
|
|
35
|
+
"@authup/kit": "^1.0.0-beta.54",
|
|
36
36
|
"@nuxt/kit": "^4.0.0",
|
|
37
37
|
"pathtrace": "^2.2.0",
|
|
38
38
|
"smob": "^1.6.1"
|