Mattèo
Mattèo
Explore posts from servers
HHono
Created by Mattèo on 1/31/2025 in #help
Using @hono/auth-js with one API server (auth) and one web server (front) ?
Hope to see a guide on server implementations 🙏 (covering XSS, CORS, sharing types, etc...)
17 replies
HHono
Created by Mattèo on 1/31/2025 in #help
Using @hono/auth-js with one API server (auth) and one web server (front) ?
Thanks for your explanation, I completely understand the design choice of targeting full stack framework app, some devs like me have different needs in the age of "server first" / "RSC" / "meta-framework" 😅
17 replies
HHono
Created by Mattèo on 1/31/2025 in #help
Using @hono/auth-js with one API server (auth) and one web server (front) ?
Yes we can say that, Imagine I want to build a mobile app in the future, I might want to rely on an auth server since the native environment is completely different
17 replies
HHono
Created by Mattèo on 1/30/2025 in #help
Hono + Bun + Better Auth 404 error when using app.route
Problem solved the /api/auth/** handler is not well written, change it to /api/auth/* (PR that solve the issue in better-auth docs https://github.com/better-auth/better-auth/pull/1317)
2 replies
HHono
Created by Mattèo on 1/27/2025 in #help
Can't get the RPC typing
Thanks for your explanation, chaining was my issue
23 replies
HHono
Created by Mattèo on 1/27/2025 in #help
Can't get the RPC typing
I see
23 replies
HHono
Created by Mattèo on 1/27/2025 in #help
Can't get the RPC typing
No problem, I just pasted what's in the docs https://hono.dev/docs/guides/rpc#compile-your-code-before-using-it-recommended Do you have a better option ?
23 replies
HHono
Created by Mattèo on 1/27/2025 in #help
Can't get the RPC typing
I understand my issue, but that's a bit strange behavior to work with... Thanks a lot for your time !
23 replies
HHono
Created by Mattèo on 1/27/2025 in #help
Can't get the RPC typing
import { AppType } from "./app"
import { hc } from "hono/client"

// assign the client to a variable to calculate the type when compiling
const client = hc<AppType>("")
export type Client = typeof client

export const hcWithType = (...args: Parameters<typeof hc>): Client => hc<AppType>(...args)

const test = hcWithType("http://localhost:3000")

test.user.$get()
import { AppType } from "./app"
import { hc } from "hono/client"

// assign the client to a variable to calculate the type when compiling
const client = hc<AppType>("")
export type Client = typeof client

export const hcWithType = (...args: Parameters<typeof hc>): Client => hc<AppType>(...args)

const test = hcWithType("http://localhost:3000")

test.user.$get()
23 replies