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
Example usages of the @hono/auth-js lib :
I don't want to proxy my API to
Thanks for reading me !
Wishing you a good day
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 :
- https://github.com/divyam234/next-auth-hono-react
- https://github.com/honojs/middleware/blob/main/packages/auth-js/test/index.test.ts
- https://github.com/tgdrive/rdebrid-ui/
I don't want to proxy my API to
example.com/api/auth because I prefer using a separate hostname like this api.example.comThanks for reading me !
Wishing you a good day