mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
refactor: use betterauth instead of workos
This commit is contained in:
7
packages/convex/http.ts
Normal file
7
packages/convex/http.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { httpRouter } from "convex/server"
|
||||
import { authComponent, createAuth } from "./auth"
|
||||
|
||||
const http = httpRouter()
|
||||
// CORS handling is required for client side frameworks
|
||||
authComponent.registerRoutes(http, createAuth, { cors: true })
|
||||
export default http
|
||||
Reference in New Issue
Block a user