middleware icon indicating copy to clipboard operation
middleware copied to clipboard

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

Open kodermax opened this issue 1 year ago • 1 comments

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

kodermax avatar Sep 18 '24 08:09 kodermax

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

catnaut avatar Nov 13 '24 13:11 catnaut