Merge pull request #878 from aleksas/fix/public-invite-info-dev

fix(web): allow public invite info fetches
This commit is contained in:
Rohan Verma 2026-03-12 12:58:09 -07:00 committed by GitHub
commit bb18f37c1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.");
}