honojs / middleware

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

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

Open kodermax opened 1 month ago

kodermax commented 1 month 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 21 hours ago

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