fix(auth): attach Bearer token to /api/bots requests #12

Merged
Janis merged 1 commits from fix/auth-interceptor-api-bots into main 2026-06-17 09:08:57 +02:00
Showing only changes of commit dce8c2cc42 - Show all commits
+2 -1
View File
@@ -9,7 +9,8 @@ export const authInterceptor: HttpInterceptorFn = (req, next) => {
req.url.includes('/api/account/official-bots') ||
req.url.includes('/api/board/game') ||
req.url.includes('/api/challenge') ||
req.url.includes('/api/tournament');
req.url.includes('/api/tournament') ||
req.url.includes('/api/bots');
if (token && isProtectedEndpoint && !req.headers.has('Authorization')) {
req = req.clone({