import type { Context } from "@wrnexus/core";
import { invokeAuthHandler } from "../api.ts";

export function GET(ctx: Context): Promise<Response> {
  return invokeAuthHandler("consumeMagicLink", ctx);
}

export function POST(ctx: Context): Promise<Response> {
  return invokeAuthHandler("consumeMagicLink", ctx);
}
