Tenuka
Explore posts from serversBABetter Auth
•Created by Tenuka on 4/6/2025 in #help
Zero Sync Authentication
If anyone is wandering how to get better auth with nextjs.
Link : https://discord.com/channels/830183651022471199/1361694110972645597/1361898149475778732
18 replies
BABetter Auth
•Created by Tenuka on 4/6/2025 in #help
Zero Sync Authentication
authClient gets the cookies and headers automaticly so I don't need to spacify manually. also I've tried to get the token manually with authclient.token and It gave me a correct token
18 replies
BABetter Auth
•Created by Tenuka on 4/6/2025 in #help
Zero Sync Authentication
Yes Still worker=syncer pid=12680 errorKind=AuthInvalidated Sending error on WebSocket {"kind":"AuthInvalidated","message":"Failed to decode auth token: JWTClaimValidationFailed: unexpected "sub" claim value"} comming from zero cache
18 replies
BABetter Auth
•Created by Tenuka on 4/6/2025 in #help
Zero Sync Authentication
Event If I've used ZERO_AUTH_JWKS_URL and zero decode the auth it gives a claim error,
18 replies
BABetter Auth
•Created by Tenuka on 4/6/2025 in #help
Zero Sync Authentication
No nothing yet I'm also suck of this err
18 replies
BABetter Auth
•Created by Tenuka on 4/6/2025 in #help
Zero Sync Authentication
That gives me the error "kind":"AuthInvalidated" │,"message":"Failed to decode auth token: JWTClaimValidationFailed: unexpected "sub" claim value"
18 replies
BABetter 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