Skip to content

Commit 64a9ad1

Browse files
committed
fix(web): allow public invite info fetches
1 parent a818c3b commit 64a9ad1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

surfsense_web/lib/apis/base-api.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ class BaseApiService {
9191
// Validate the bearer token
9292
const isNoAuthEndpoint =
9393
this.noAuthEndpoints.includes(url) ||
94-
this.noAuthPrefixes.some((prefix) => url.startsWith(prefix));
94+
this.noAuthPrefixes.some((prefix) => url.startsWith(prefix)) ||
95+
/^\/api\/v1\/invites\/[^/]+\/info$/.test(url);
9596
if (!this.bearerToken && !isNoAuthEndpoint) {
9697
throw new AuthenticationError("You are not authenticated. Please login again.");
9798
}

0 commit comments

Comments
 (0)