import { Injectable } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';

// JWT-only (auth/me, logout — endpoints that make no sense for API keys)
@Injectable()
export class JwtAuthGuard extends AuthGuard('jwt') {}

// Accepts either a logged-in user (cookie/Bearer JWT) or an X-API-Key.
@Injectable()
export class UserOrApiKeyGuard extends AuthGuard(['jwt', 'api-key']) {}
