Magic link error: TypeError: Invalid URL
at new URL (node:internal/url:818:25)
at file:///root/lumabooking/frontend/node_modules/better-auth/dist/plugins/magic-link/index.mjs:141:31
at async internalHandler (file:///root/lumabooking/frontend/node_modules/better-call/dist/index.js:576:22)
at async api.<computed> [as signInMagicLink] (file:///root/lumabooking/frontend/node_modules/better-auth/dist/api/index.mjs:534:22)
at async eval (/root/lumabooking/frontend/src/lib/server/trpc/routers/v2/router.ts:234:23)
at async resolveMiddleware (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:221:17)
at async callRecursive (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:256:18)
at async outputValidatorMiddleware (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:60:18)
at async callRecursive (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:256:18)
at async callRecursive (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:256:18) {
code: 'ERR_INVALID_URL',
input: ''
}
Magic link error: TypeError: Invalid URL
at new URL (node:internal/url:818:25)
at file:///root/lumabooking/frontend/node_modules/better-auth/dist/plugins/magic-link/index.mjs:141:31
at async internalHandler (file:///root/lumabooking/frontend/node_modules/better-call/dist/index.js:576:22)
at async api.<computed> [as signInMagicLink] (file:///root/lumabooking/frontend/node_modules/better-auth/dist/api/index.mjs:534:22)
at async eval (/root/lumabooking/frontend/src/lib/server/trpc/routers/v2/router.ts:234:23)
at async resolveMiddleware (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:221:17)
at async callRecursive (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:256:18)
at async outputValidatorMiddleware (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:60:18)
at async callRecursive (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:256:18)
at async callRecursive (file:///root/lumabooking/frontend/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs:256:18) {
code: 'ERR_INVALID_URL',
input: ''
}