HonoH
Honoโ€ข11mo ago
Mattรจo

Using @hono/auth-js with one API server (auth) and one web server (front) ?

Hey, hope Hono fans are doing well, I'm wondering if it's possible to use a distant API (not on the same hostname) with authjs ?
I've seen multiple examples with @hono/auth-js but they are always relying on the vite proxy server to serve the api on the same host as the frontend server.

Example usages of the @hono/auth-js lib :
Can anyone help me?

I don't want to proxy my API to example.com/api/auth because I prefer using a separate hostname like this api.example.com
Thanks for reading me ! ๐Ÿ˜Š

Wishing you a good day ๐Ÿ˜‰
Was this page helpful?