* feat: implement Trello integration with OAuth and user fields * feat: migrate Trello integration to new integrations table * refactor: migrate Trello integration to use new integration system * refactor: migrate Trello integration to use new integrations table * fix: add loading check for Trello integration and update VSCode settings * feat: enhance import boards UI with dynamic integration providers and local storage config * feat: add select/unselect all buttons and loading state to board import form * feat: add Trello import env vars on README * docs: update Trello import guide to use OAuth flow instead of API keys * feat: add integrations table for OAuth token management * feat: connect trello from import modal * refactor: consolidate Trello integration endpoints into unified integration router * fix: trello import again * refactor: generalize integration authorization flow and improve error handling * refactor: update Trello API endpoints and tags for better organization * feat: add Integrations tag to OpenAPI specification * refactor: update Trello auth endpoint to use generic integration provider param * refactor: move Trello integration logic from trello.ts to import.ts router * refactor: consolidate Trello integration endpoints and fix API URL * chore: remove debug logs --------- Co-authored-by: Henry <henry_ball@hotmail.co.uk>
11 lines
304 B
TypeScript
11 lines
304 B
TypeScript
import { toNodeHandler } from "better-auth/node";
|
|
|
|
import { initAuth } from "@kan/auth/server";
|
|
import { createDrizzleClient } from "@kan/db/client";
|
|
|
|
export const config = { api: { bodyParser: false } };
|
|
|
|
export const auth = initAuth(createDrizzleClient());
|
|
|
|
export default toNodeHandler(auth.handler);
|