/**
 * Skip CSRF Decorator
 *
 * Marks an endpoint to skip CSRF protection.
 * Use for endpoints that have alternative authentication (e.g., signature verification).
 *
 * @example
 * ```typescript
 * @Post('incoming/connect')
 * @SkipCsrf()
 * async handleIncomingConnection() {
 *   // Signature-based authentication, no CSRF needed
 * }
 * ```
 */

import { SetMetadata } from "@nestjs/common";
import { SKIP_CSRF_KEY } from "../guards/csrf.guard";

export const SkipCsrf = () => SetMetadata(SKIP_CSRF_KEY, true);
