Tenuka
Explore posts from serversBABetter Auth
•Created by Tarun kumar on 2/25/2025 in #help
Magic Link Type Error
in vercel and cloudflare
10 replies
BABetter Auth
•Created by Tarun kumar on 2/25/2025 in #help
Magic Link Type Error
not open next
10 replies
BABetter Auth
•Created by Tarun kumar on 2/25/2025 in #help
Magic Link Type Error
anyone got the way to fix it
10 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
I don't need to edit the middleware , the problem is in better auth not getting the server
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
I need to pass the cookies to here
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
because its hosted on different platforms
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
I can do that just in the middleware , you can't get the next cookies in the hono server
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
yes I understand You don't get what i'm telling you , I cant pass the cookie to the hono server
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
evn If I didi that I cant run the admin procedures cus I don't have a session in the server
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
import { createClient } from "jstack";
import { AppRouter } from "~/server";
/**
* Your type-safe API client
* @see https://jstack.app/docs/backend/api-client
*/
export const client = createClient<AppRouter>({
baseUrl:
${process.env.NEXT_PUBLIC_SERVER_URL ? process.env.NEXT_PUBLIC_SERVER_URL : "http://127.0.0.1:8787"}/api
,
credentials: "include",
fetch: (input: RequestInfo | URL, requestInit?: RequestInit) => {
return fetch(input, {
method: requestInit?.method ?? "GET",
credentials: "include",
headers: {
...requestInit?.headers,
},
body: requestInit?.body ?? null,
});
},
});
it is the hono client159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
I cant get cookies for next in the hono server cus process is undefined
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
How to do that
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
.env.local has the 127.0.0.1:8787 as a variable so that localhost gets overwritten
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
but the env is the one loading ( thats a error of mine )
159 replies
BABetter Auth
•Created by Sithu Khant on 2/17/2025 in #help
Hono and Better-Auth
alright but isnt cross domain thing working
159 replies