honojs / middleware

monorepo for Hono third-party middleware/helpers/wrappers
https://hono.dev
474 stars 169 forks source link

Remove config.basePath ||= '/api/auth' #741

Open kodermax opened 2 months ago

kodermax commented 2 months ago

https://github.com/honojs/middleware/blob/58c8e237a99d049207c370750253032a4e9bf5ee/packages/auth-js/src/index.ts#L37C1-L38C1

Please remove this line that triggers the warning message.

  config.basePath ||= '/api/auth'
[auth][warn][env-url-basepath-redundant] Read more: https://warnings.authjs.dev#env-url-basepath-redundant
catnaut commented 1 week ago

I submitted a PR #818 to fix this! Let me know if it resolves the issue on your end.