@wix/astro 2.10.0 → 2.10.1
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.
|
@@ -51,6 +51,9 @@ function getSessionTokensFromCookie(context) {
|
|
|
51
51
|
|
|
52
52
|
// src/middleware/auth.ts
|
|
53
53
|
var onRequest = async (context, next) => {
|
|
54
|
+
if (context.url.pathname.startsWith("/_wix/extensions/")) {
|
|
55
|
+
return next();
|
|
56
|
+
}
|
|
54
57
|
const existingTokens = getExistingTokens(context);
|
|
55
58
|
const usedTokens = existingTokens ?? await generateVisitorTokens();
|
|
56
59
|
const store = {
|