diff --git a/surfsense_web/lib/apis/base-api.service.ts b/surfsense_web/lib/apis/base-api.service.ts index 9406621f2..21e84b2b0 100644 --- a/surfsense_web/lib/apis/base-api.service.ts +++ b/surfsense_web/lib/apis/base-api.service.ts @@ -91,7 +91,8 @@ class BaseApiService { // Validate the bearer token const isNoAuthEndpoint = this.noAuthEndpoints.includes(url) || - this.noAuthPrefixes.some((prefix) => url.startsWith(prefix)); + this.noAuthPrefixes.some((prefix) => url.startsWith(prefix)) || + /^\/api\/v1\/invites\/[^/]+\/info$/.test(url); if (!this.bearerToken && !isNoAuthEndpoint) { throw new AuthenticationError("You are not authenticated. Please login again."); }