Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kodermax opened this issue Sep 18, 2024 · 1 comment · May be fixed by #818
Open

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

kodermax opened this issue Sep 18, 2024 · 1 comment · May be fixed by #818

Comments

@kodermax
Copy link
Contributor

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
Copy link

catnaut commented Nov 13, 2024

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

@catnaut catnaut linked a pull request Nov 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants